From fb3a03ce96870f154c6a11bf17ee51dce6366a91 Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Sun, 21 Feb 2021 23:50:28 +0000 Subject: [PATCH] Removed debug artifacts, cleanup --- .github/workflows/ci.yml | 26 ++------------------------ test.py | 4 +--- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 313b1b0..6aa1536 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,29 +19,7 @@ jobs: experimental-features = nix-command flakes - name: build dependencies run: nix build path://$PWD/ - - - name: python3 --version - run: PATH="$PWD/result/bin" python3 --version - - name: awk --version - run: PATH="$PWD/result/bin" awk --version - - name: sh --version - run: PATH="$PWD/result/bin" sh --version - - name: sha256sum --version - run: PATH="$PWD/result/bin" sha256sum --version - - name: sqlite3 --version - run: PATH="$PWD/result/bin" sqlite3 --version - - name: git --version - run: PATH="$PWD/result/bin" git --version - - name: Run tests run: PATH="$PWD/result/bin" python3 ./test.py 2>&1 - - name: Run tests - run: PATH="$PWD/result/bin" python3 ./test.py 2>&1 - - uses: actions/upload-artifact@v2 - with: - name: debug-git.tar.gz - path: /tmp/debug-git.tar.gz - - uses: actions/upload-artifact@v2 - with: - name: debug-sql.tar.gz - path: /tmp/debug-sql.tar.gz + - name: Run tests again (checks that the hashes don't change randomly) + run: PATH="$PWD/result/bin" python3 ./test.py 2>&1 \ No newline at end of file diff --git a/test.py b/test.py index 5bb3417..eb10f6d 100755 --- a/test.py +++ b/test.py @@ -129,8 +129,6 @@ with tempfile.TemporaryDirectory(prefix="test", dir="/tmp") as tempdir: h = subprocess.check_output([os.path.abspath('./hash-files.py'), 'test/foo'], cwd=tempdir).strip() if h == b'7d6917fef222456552b6359ddc4eee235a0cdca089c0a6d9b4b2f6a747987eb9': print("test passed: sqlite big table\n", flush=True) - subprocess.check_output("tar -zcf /tmp/debug-sql.tar.gz .", cwd=tempdir, shell=True) else: print("TEST FAILED: sqlite big table got hash " + repr(h) + "\n", flush=True) - subprocess.check_output("tar -zcf /tmp/debug-sql.tar.gz .", cwd=tempdir, shell=True) - exit(0) \ No newline at end of file + exit(1) \ No newline at end of file