/{.github,integration-tests}: log ci failures

This commit is contained in:
coffeegoddd☕️✨
2026-02-02 11:21:47 -08:00
parent 02f842a63b
commit 2346dc9132
4 changed files with 36 additions and 1 deletions

View File

@@ -86,6 +86,12 @@ jobs:
run: |
dolt config --global --add user.name 'Dolthub Actions'
dolt config --global --add user.email 'actions@dolthub.com'
- name: Setup Git Config
run: |
git --version
git config --global user.name 'Dolthub Actions'
git config --global user.email 'actions@dolthub.com'
git config --global init.defaultBranch main
- name: Install Maven
working-directory: ./.ci_bin
run: |

View File

@@ -96,6 +96,12 @@ jobs:
run: |
dolt config --global --add user.name 'Dolthub Actions'
dolt config --global --add user.email 'actions@dolthub.com'
- name: Setup Git Config
run: |
git --version
git config --global user.name 'Dolthub Actions'
git config --global user.email 'actions@dolthub.com'
git config --global init.defaultBranch main
- name: Install expect
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get install -y expect

View File

@@ -149,6 +149,12 @@ jobs:
run: |
dolt config --global --add user.name 'Dolthub Actions'
dolt config --global --add user.email 'actions@dolthub.com'
- name: Setup Git Config
run: |
git --version
git config --global user.name 'Dolthub Actions'
git config --global user.email 'actions@dolthub.com'
git config --global init.defaultBranch main
- name: Test file
run: bats --tap ${{ matrix.file }}
working-directory: ./integration-tests/bats

View File

@@ -25,7 +25,24 @@ teardown() {
# Helper function to create a bare git repository
create_bare_git_repo() {
local name=$1
git init --bare "git-remotes/${name}.git" > /dev/null 2>&1
local repo_path="git-remotes/${name}.git"
# Debug output
echo "DEBUG: Creating bare git repo: ${repo_path}"
echo "DEBUG: Current directory: $(pwd)"
echo "DEBUG: PATH=${PATH}"
echo "DEBUG: which git: $(which git 2>&1)"
echo "DEBUG: git --version: $(git --version 2>&1)"
echo "DEBUG: /usr/bin/git exists: $(test -x /usr/bin/git && echo 'yes' || echo 'no')"
# Try to create the repo
if ! git init --bare "${repo_path}"; then
echo "DEBUG: git init failed with exit code $?"
return 1
fi
echo "DEBUG: Successfully created ${repo_path}"
ls -la "${repo_path}"
}
@test "remotes-git: remote init creates dolt structure" {