Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,28 @@ jobs:
echo "failed_tools=$failed_tools" >> "$GITHUB_OUTPUT"
- if: steps.test-tools.outputs.failed_tools != ''
run: mise test-tool ${{ steps.test-tools.outputs.failed_tools }}

ci:
runs-on: ubuntu-latest
timeout-minutes: 1
needs:
- build
- list-changed-tools
- test-tool
if: always()
steps:
- name: Check CI job results
run: |
if [ "${{ needs.build.result }}" != "success" ]; then
echo "build failed or was skipped"
exit 1
fi
Comment on lines +136 to +139
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message indicates 'or was skipped', but the condition only checks for non-success states. If the build job is actually skipped, this message would be misleading since skipped jobs should potentially be treated differently than failed ones. Consider either checking explicitly for 'skipped' status or removing the 'or was skipped' text from the error message.

Copilot uses AI. Check for mistakes.
if [ "${{ needs.list-changed-tools.result }}" != "success" ] && [ "${{ needs.list-changed-tools.result }}" != "skipped" ]; then
echo "list-changed-tools failed"
exit 1
fi
if [ "${{ needs.test-tool.result }}" != "success" ]; then
echo "test-tool failed or was skipped"
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message indicates 'or was skipped', but unlike list-changed-tools, there's no conditional logic allowing test-tool to be skipped. This creates inconsistency with how the two jobs are validated. Either add explicit handling for the skipped state or clarify the error message to only mention failure.

Suggested change
echo "test-tool failed or was skipped"
echo "test-tool failed"

Copilot uses AI. Check for mistakes.
exit 1
fi
echo "All CI jobs completed successfully"
Loading