Skip to content

ci: don't skip lib generation when the repos job fails - #670

Closed
jvrplmlmn wants to merge 1 commit into
masterfrom
jvrplmlmn/ci-generate-without-repos-and-dispatch
Closed

jvrplmlmn wants to merge 1 commit into
masterfrom
jvrplmlmn/ci-generate-without-repos-and-dispatch

Conversation

@jvrplmlmn

@jvrplmlmn jvrplmlmn commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Related:

When several PRs merged within minutes, their merge-push runs collided on the shared terraform state lock and Create repositories failed with workspace already locked (run 34815869804, likely also 27335334287). Every Generate <lib> job needs: [build, repos], so all of them were skipped. A lib is only generated on the merge push that touches libs/<lib>/**, so nothing retried and the two Talos libs were never published.

  • Generate jobs now run with if: !cancelled() && needs.build.result == 'success', so a failed repos job no longer blocks generation for libs whose repository already exists.
  • A brand-new lib whose repository was not created now fails visibly in its generate job instead of being silently skipped.
  • Adds workflow_dispatch with a libs input (comma-separated names, no spaces, or all) that bypasses paths-filter and force-generates those libs, to recover from a skipped generation without a dummy commit.

Note: the workflow_dispatch path is untested.

When several PRs merged within minutes, their merge-push runs collided on
the shared terraform state lock (run 34815869804, and likely 27335334287).
"Create repositories" failed, every generate job needs it, so all of them
were skipped. A lib is only generated on the merge push that touches it, so
nothing retried and the two Talos libs (#650, #651) were never published.

- Run generate jobs whenever the image build succeeded, even if `repos`
  failed: existing repositories are still pushable, and a lib whose repo
  was not created now fails visibly instead of being silently skipped.
- Add a workflow_dispatch with a `libs` input (comma-separated names or
  'all') to regenerate libs without a path change, so a skipped
  generation can be recovered without a dummy commit.
@jvrplmlmn

Copy link
Copy Markdown
Contributor Author

Unfortunately don't have bandwidth to work on this right now, closing.

@jvrplmlmn jvrplmlmn closed this Nov 3, 2026
@jvrplmlmn
jvrplmlmn deleted the jvrplmlmn/ci-generate-without-repos-and-dispatch branch November 3, 2026 15:57
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.

1 participant