Skip to content

Commit

Permalink
Don't set custom TMPDIR
Browse files Browse the repository at this point in the history
This seems to be the culprit for the extremely long path names that
are too long for IPC paths.
  • Loading branch information
sveitser committed Aug 30, 2024
1 parent 5209690 commit b2109ff
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,31 +180,17 @@ jobs:
- name: Set environment variables
run: |
mkdir -p target/tmp/x
echo "TMPDIR=$(pwd)/target/tmp/x" >> "$GITHUB_ENV"
echo "GOMEMLIMIT=6GiB" >> "$GITHUB_ENV"
echo "GOGC=80" >> "$GITHUB_ENV"
- name: run tests without race detection
if: matrix.test-mode == 'defaults'
shell: bash
run: |
# HACK: move to directory with shorter path to avoid IPC paths over 107 characters
ls -lah /tmp
rm -rf /tmp/gha-work
CHECKOUT_DIR=$PWD
cd /
mv -v $CHECKOUT_DIR /tmp/gha-work
cd /tmp/gha-work
skip_tests=`grep -vE '^\s*#|^\s*$' ci_skip_tests | sed 's/.*/^&$/g' | tr '\n' '|' | sed 's/|$//'`
packages=`go list ./...`
stdbuf -oL gotestsum --format short-verbose --packages="$packages" --rerun-fails=1 --no-color=false -- ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,./go-ethereum/... -timeout 35m -skip "$skip_tests" > >(stdbuf -oL tee full.log | grep -vE "INFO|seal")
# HACK: move directory back to GITHUB_WORKSPACE
cd /
mv -v /tmp/gha-work $CHECKOUT_DIR
- name: run tests with race detection
if: matrix.test-mode == 'race'
shell: bash
Expand All @@ -215,21 +201,7 @@ jobs:
- name: run redis tests
if: matrix.test-mode == 'redis'
run: |
# HACK: move to directory with shorter path to avoid IPC paths over 107 characters
ls -lah /tmp
rm -rf /tmp/gha-work
CHECKOUT_DIR=$PWD
cd /
mv -v $CHECKOUT_DIR /tmp/gha-work
cd /tmp/gha-work
TEST_REDIS=redis://localhost:6379/0 gotestsum --format short-verbose -- -timeout 20m -p 1 -run TestRedis ./arbnode/... ./system_tests/... -coverprofile=coverage-redis.txt -covermode=atomic -coverpkg=./...
# HACK: move directory back to GITHUB_WORKSPACE
cd /
mv -v /tmp/gha-work $CHECKOUT_DIR
run: TEST_REDIS=redis://localhost:6379/0 gotestsum --format short-verbose -- -timeout 20m -p 1 -run TestRedis ./arbnode/... ./system_tests/... -coverprofile=coverage-redis.txt -covermode=atomic -coverpkg=./...

- name: run challenge tests
if: matrix.test-mode == 'challenge'
Expand Down

0 comments on commit b2109ff

Please sign in to comment.