Skip to content

Query sources of cached elements in build pipeline with source push enabled#1458

Merged
juergbi merged 5 commits into
masterfrom
juerg/build-with-source-push
Mar 23, 2021
Merged

Query sources of cached elements in build pipeline with source push enabled#1458
juergbi merged 5 commits into
masterfrom
juerg/build-with-source-push

Conversation

@juergbi
Copy link
Copy Markdown
Contributor

@juergbi juergbi commented Mar 18, 2021

The source cache status of all elements is required if source push is enabled, independent of whether the artifact is already available.

Fixes #1456.

Fixes: 2003805 ("Move artifact and source cache query trigger to...")

@juergbi juergbi force-pushed the juerg/build-with-source-push branch from 5af9829 to 41db457 Compare March 18, 2021 20:20
juergbi added 5 commits March 23, 2021 09:55
`_pull_pending()` is now a trivial method and it doesn't make sense to
guard it with `_can_query_cache()`.
It's correct to call `_load_artifact_done()` if the pull was
unsuccessful because the artifact is not available on the server.
However, if an error is raised (e.g. job was terminated or an internal
error), we must not call `_load_artifact_done()` as no artifact object
is available.
This is a clarification in preparation for an additional parameter.
The source cache status of all elements is required if source push is
enabled, independent of whether the artifact is already available.

Fixes #1456.

Fixes: 2003805 ("Move artifact and source cache query trigger to...")
@juergbi juergbi force-pushed the juerg/build-with-source-push branch from 41db457 to 95e0190 Compare March 23, 2021 08:56
@juergbi juergbi merged commit 22f8b64 into master Mar 23, 2021
@juergbi juergbi deleted the juerg/build-with-source-push branch March 23, 2021 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AssertionErrors when trying to build anything

2 participants