Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
7e7d363 to
bf815ab
Compare
Acquire qa-assets once per workflow run and distribute verified unit vectors and fuzz inputs through same-run artifacts. Reuse the common helper for Linux, macOS and Windows consumers instead of downloading the same inputs in each job. Package the inputs as tar files so the artifact downloader extracts one file instead of many small corpus files. Let artifact ZIP compression handle the transfer and extract the tar before verification. Record the selected revision and file hashes, mount shared inputs read-only in containers, and give fuzz jobs separate writable copies. Keep standalone acquisition and select a fresh snapshot each run. Refs bitcoin#36814.
bf815ab to
4bdc3e2
Compare
|
thx for working on this, but this is adding ~300 loc, which need to be reviewed, tested, and maintained (as they can contain bugs or require other changes in the future). IIUC the issue they are trying to fix happened in two pull requests over the last year? It would be good to get an idea of how often this will fix an issue, so that it is clear that the time spent reviewing/maintaining this every year is less than the time it takes to click the re-run CI button every year. On could also cache other stuff, like #33913 (comment), but this hasn't been done yet either, because it is not worth it. |
|
It just depends how much importance one gives to determinism in tests. Obviously for a cryptographer's mind this is of paramount importance. Failing tests may also drive wrong decision making, re-runs feel like... switch it off and on again, see if that works 😅 |
|
Generally, the tests aren't meant to be 100% deterministic, but rather reproducible, so that failures are actionable. For example, the functional and unit tests can take a random seed, which is logged, for a bit of "property-based" testing. On any test failure, one should trivially see all the actions and inputs that lead to the failure and reproduce the exact failure. The tests itself should never have any network access (#31349), so network io errors can only happen during CI runs. Those can happen in many different places: docker image cache, docker volume cache, package manager downloads, other dependency downloads, Every week there are a few of those network failures, which is extremely annoying, but at the same time something that can't really be fixed: If a cache is created for one resource, then creating the cache can still fail, or downloading the cache itself may fail instead. Also, spotting network failures is generally easier to deal with than a real intermittent ci failure or some of the failures caused by corrupt VM hardware. See https://github.com/bitcoin/bitcoin/issues?q=is%3Aissue+state%3Aclosed+label%3A%22CI+failed%22 |
|
See e.g: And an apt error earlier today, ... |
|
Just for the larger picture, I asked DrahtBot to report all intermittent network issues and this one wasn't hit. Whereas there were many other network issues in other parts: So if this is something to fix, the fix should give a substantial improvement in that problem area. 300LOC for something that doesn't dent the large picture doesn't seem worth it. I'd say this should be closed, unless a real benefit can be shown. |

CI jobs download the same qa-assets inputs separately. As reported in #36814, these repeated requests can fail with HTTP 504 before the tests start.
Add one preparation job that checks out qa-assets once per workflow run and shares the unit-test data and fuzz corpus through Actions artifacts. Linux, macOS and Windows consumers verify the selected revision and file hashes before using them.
Containers mount the shared inputs read-only. Fuzz jobs use separate writable copies. Standalone CI scripts keep direct acquisition through the common download helper.