Skip to content

Don't publish when the inventory job fails - #52

Merged
lucperkins merged 1 commit into
mainfrom
fix-publish-after-inventory-failure
Oct 28, 2026
Merged

lucperkins merged 1 commit into
mainfrom
fix-publish-after-inventory-failure

Conversation

@lucperkins

@lucperkins lucperkins commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

The success job only had needs: build and failed on failure/cancelled. If inventory failed, build was skipped, so neither check matched and success went on to run flakehub-push (on the default branch or a tag) for a flake that was never built.

This makes success depend on both inventory and build, and fail unless both are success.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Release validation now checks both inventory and build results. A skipped, cancelled, or otherwise unsuccessful check is reported as a failure, and the status of each check is included in the validation report.

The success job only depended on build. When inventory failed, build was
skipped, which the failure/cancelled check didn't catch, so success went
on to publish an unbuilt flake. Depend on both jobs and require each to
have succeeded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 2bffdf85-8728-40b0-be39-8fa35961dd6f
Commits

Reviewing files that changed from the base of the PR and between fb4321e and b421ec7.

Files selected for processing: 1
  • .github/workflows/workflow.yml

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Walkthrough

The success job now depends on both inventory and build. Its guard reports both job results and exits with an error if either result is not success.

Changes: Success job dependency guard

Layer / File(s) Summary
Declare dependencies and validate results
.github/workflows/workflow.yml
The success job now depends on inventory and build. Its guard reports both results and exits when either result is not success.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: grahamc

Merge Risk: Minimal · up to b421e

Publishing is now blocked unless both inventory and build succeed, so no merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "Don't publish when the inventory job fails" matches the main change. The workflow's success job now depends on both inventory and build, and it fails unless both succeed, which blocks the f…
Description check Passed The description covers the problem, the cause, and the fix. It explains that the success job only had needs: build and checked for failure/cancelled, so when inventory failed, build was skipped and su…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Don't publish when the inventory job fails" matches the main change. The workflow's success job now depends on both inventory and build, and it fails unless both succeed, which blocks the flakehub-push publish step when inventory fails. The title is specific and describes the primary behavior change from the developer's perspective.

Full details: Description check

Explanation

The description covers the problem, the cause, and the fix. It explains that the success job only had needs: build and checked for failure/cancelled, so when inventory failed, build was skipped and success still ran flakehub-push on the default branch or a tag. It states the fix: success depends on both inventory and build and fails unless both are success. The repository template only asks for prettier formatting before committing, and the description does not conflict with that. The description is mostly complete and clear.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@lucperkins
lucperkins merged commit 5cab898 into main Oct 28, 2026
6 checks passed
@lucperkins
lucperkins deleted the fix-publish-after-inventory-failure branch October 28, 2026 15:43
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.

2 participants