commit fb3a03ce96870f154c6a11bf17ee51dce6366a91
parent 49c90167b0b1b8feda8b42bf92b326ff9ee1ec4e
Author: Suzanne Soy <git@suzanne.soy>
Date: Sun, 21 Feb 2021 23:50:28 +0000
Removed debug artifacts, cleanup
Diffstat:
2 files changed, 5 insertions(+), 28 deletions(-)
diff --git 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
@@ -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