CI failure on test_auto_normalize_collection_sync
See original GitHub issueThe following test appears to be failing on CI.
_____________________ test_auto_normalize_collection_sync _____________________
c = <Client: 'tcp://127.0.0.1:58347' processes=2 threads=2, memory=15.03 GB>
def test_auto_normalize_collection_sync(c):
da = pytest.importorskip("dask.array")
x = da.ones(10, chunks=5)
y = x.map_blocks(slowinc, delay=1, dtype=x.dtype)
yy = c.persist(y)
wait(yy)
with dask.config.set(optimizations=[c._optimize_insert_futures]):
start = time()
y.sum().compute()
end = time()
> assert end - start < 1
E assert (1594691186.7301342 - 1594691185.6998608) < 1
distributed\tests\test_client.py:4354: AssertionError
Maybe we just need to bump the threshold a little bit. Though I’m not sure if that defeats the point of the test.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
`.gitlab-ci.yml` keyword reference - GitLab Docs
Allow job to fail. A failed job does not cause the pipeline to fail. artifacts, List of files and directories to attach to...
Read more >Troubleshooting Continuous Integration, or How to Debug ...
If you're using a Continuous Integration server, sooner or later a build will fail on the CI, but pass on your development machine....
Read more >GitLab CI: How to continue job even when script fails
Basically, the job should still count as failed in GitLab CI / CD, but its entire script should be executed. How can I...
Read more >Cypress tests are green locally, but failing in Gitlab CI #8925
I implemented e2e tests with Cypress. They work fine and I can run them with command line based on the packaged version of...
Read more >Cloud: CI/CD Pipeline failure - Progress Community
CI /CD Pipeline failure. ... A deployment is failing on with a Runtime error. Enabling customErrors in the web.config has no effect.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s probably good to give an “incident” report here. What I think happened was that in PR
https://github.com/dask/dask/pull/6382,
collections_to_dsk
called the optimizer on the graph during the grouping operation where we want to group the same optimizations on a list of graphs and keys. Doing this prematurely resulted in an already optimized graph which brokentest_auto_normalize_collection_sync
test.Normally, during this test we would see a list of keys like the following:
And we have a list of futures like the following:
The _optimize_insert_futures function iterates over the list of keys in the graph and checks if we can replace the values of that graph with futures only if there are overlapping keys with future results – essentially, don’t recompute things. However, because we pre-optimized the list of keys looked like the following
and the test broke. PR fixed the issue https://github.com/dask/dask/pull/6409 by removing the the premature optimization call
Thanks Ben! 😄