Skip to content

fix: gate image publishing on the test job - #68

Merged
gordonmurray merged 1 commit into
lance-format:mainfrom
gordonmurray:fix/66-gate-publish-on-tests
Aug 1, 2026
Merged

fix: gate image publishing on the test job#68
gordonmurray merged 1 commit into
lance-format:mainfrom
gordonmurray:fix/66-gate-publish-on-tests

Conversation

@gordonmurray

Copy link
Copy Markdown
Collaborator

Fixes #66

The build and test jobs had no dependency between them, so both started at the same time. Since build publishes to ghcr.io on any event that is not a pull request, a push to main published images before the tests finished, and published them even when the tests failed.

needs: test makes the build matrix wait for the whole test matrix.

Cost

On a recent run of main, the seven test jobs all finished 32 seconds after the workflow started, and the seven builds took about four minutes. The wait costs roughly half a minute.

Pull requests now also wait for the tests before building. They never published anything, so the only change there is ordering.

Test plan

  • .github/workflows/release.yml parses, build.needs is test, and the graph has no cycle
  • Test suite passes on all seven LanceDB versions, 30 tests each

The workflow only runs on main, tags, and pull requests, so the change itself first runs on this PR.

The build and test jobs had no dependency between them, so both started at the
same time. Since build publishes to ghcr.io on any event that is not a pull
request, a push to main published images before the tests finished, and
published them even when the tests failed.

Adding needs: test makes the build matrix wait for the test matrix. On a recent
run of main the test jobs finished 32 seconds in and the builds took about four
minutes, so the wait costs roughly half a minute.
@gordonmurray
gordonmurray merged commit af9f609 into lance-format:main Aug 1, 2026
14 checks passed
@gordonmurray
gordonmurray deleted the fix/66-gate-publish-on-tests branch August 1, 2026 17:29
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.

fix: gate image publishing on the test job

1 participant