Skip to content

Commit

Permalink
CI: always test treehash mismatch handling code path (#754)
Browse files Browse the repository at this point in the history
On the one hand, this helps ensure it doesn't get broken. On the other
hand it avoids or at least reduces code coverage fluctuations that
happen when we switch from a situation with a treehash mismatch (which
thus tests that code path) to one without a treehash mismatch (which
does not test it) when updating libsingular_julia_jll.
  • Loading branch information
fingolfin committed Jan 23, 2024
1 parent 54e0ed4 commit d489e25
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/treehash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,18 @@ jobs:
src_hash = bytes2hex(Pkg.GitTools.tree_hash(joinpath("deps", "src")))
jll_hash == src_hash || error("tree hash is $src_hash, but JLL uses $jll_hash")
'
# next force a treehash mismatch and verify that Singular runs in this
# setup; as a side effect this also reduce code coverage fluctuation when
# updating libsingular_julia_jll
- name: "Force treehash mismatch"
run: |
touch deps/src/FORCE_TREEHASH_MISMATCH
- name: "Run tests"
uses: julia-actions/julia-runtest@v1
with:
depwarn: error
- name: "Process code coverage"
uses: julia-actions/julia-processcoverage@v1
- name: "Upload coverage data to Codecov"
continue-on-error: true
uses: codecov/codecov-action@v3

0 comments on commit d489e25

Please sign in to comment.