Removed debug artifacts, cleanup

This commit is contained in:
Suzanne Soy 2021-02-21 23:50:28 +00:00
parent 49c90167b0
commit fb3a03ce96
2 changed files with 3 additions and 27 deletions

View File

@ -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

View File

@ -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)
exit(1)