Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions .github/actions/registry-diff/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ runs:
- id: diff
shell: bash
run: |
# Get modified registry files and extract tool names
modified=$(git diff --name-only ${{ inputs.base_sha }} HEAD -- 'registry/*.toml' \
# Get added/modified registry files and extract tool names
# (deleted files are excluded — they can't be tested)
modified=$(git diff --name-only --diff-filter=AM ${{ inputs.base_sha }} HEAD -- 'registry/*.toml' \
Comment thread
cursor[bot] marked this conversation as resolved.
| xargs -I{} basename {} .toml \
| tr '\n' ' ')

Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
outputs:
tools: ${{ steps.determine-tools.outputs.tools }}
tranches: ${{ steps.determine-tools.outputs.tranches }}
skip-test-tool: ${{ steps.determine-tools.outputs.skip-test-tool }}
new_tools: ${{ steps.registry-diff.outputs.new_tools }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -114,9 +115,14 @@ jobs:

tools="${{ steps.registry-diff.outputs.modified_tools }}"
count=$(echo "$tools" | wc -w)
echo "Modified tools count: $(echo "$tools" | wc -w)"
echo "Modified tools count: $count"

if [ "$count" -ge 64 ]; then
if [ "$count" -eq 0 ]; then
echo "No tools added or modified (deletion-only PR), skipping test-tool"
echo "tools=" >> "$GITHUB_OUTPUT"
echo "tranches=0" >> "$GITHUB_OUTPUT"
echo "skip-test-tool=true" >> "$GITHUB_OUTPUT"
elif [ "$count" -ge 64 ]; then
echo "64 or more tools updated, splitting changed tools across 8 tranches"
echo "tools=$tools" >> "$GITHUB_OUTPUT"
echo "tranches=8" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -164,7 +170,8 @@ jobs:
!cancelled() &&
needs.build.result == 'success' &&
(needs.list-changed-tools.result == 'success' || needs.list-changed-tools.result == 'skipped') &&
(needs.validate-new-tools.result == 'success' || needs.validate-new-tools.result == 'skipped')
(needs.validate-new-tools.result == 'success' || needs.validate-new-tools.result == 'skipped') &&
needs.list-changed-tools.outputs.skip-test-tool != 'true'
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -371,7 +378,9 @@ jobs:
echo "validate-new-tools failed - new tools must include tests"
exit 1
fi
if [ "${{ needs.test-tool.result }}" != "success" ]; then
if [ "${{ needs.list-changed-tools.outputs.skip-test-tool }}" == "true" ]; then
echo "test-tool intentionally skipped (deletion-only PR)"
elif [ "${{ needs.test-tool.result }}" != "success" ]; then
echo "test-tool failed or was skipped"
exit 1
fi
Expand Down
14 changes: 0 additions & 14 deletions registry/bosh-backup-and-restore.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/brig.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/btrace.toml

This file was deleted.

10 changes: 0 additions & 10 deletions registry/carp.toml

This file was deleted.

4 changes: 0 additions & 4 deletions registry/clarinet.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/cli53.toml

This file was deleted.

5 changes: 0 additions & 5 deletions registry/concourse.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/conduit.toml

This file was deleted.

4 changes: 0 additions & 4 deletions registry/copper.toml

This file was deleted.

6 changes: 0 additions & 6 deletions registry/credhub.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/datree.toml

This file was deleted.

12 changes: 0 additions & 12 deletions registry/djinni.toml

This file was deleted.

24 changes: 0 additions & 24 deletions registry/dome.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/draft.toml

This file was deleted.

10 changes: 0 additions & 10 deletions registry/dtm.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/envcli.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/esy.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/glen.toml

This file was deleted.

11 changes: 0 additions & 11 deletions registry/grain.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/inlets.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/kcctl.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/ki.toml

This file was deleted.

12 changes: 0 additions & 12 deletions registry/kpack.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/krab.toml

This file was deleted.

5 changes: 0 additions & 5 deletions registry/kube-credential-cache.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/kubefedctl.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/kubefirst.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/kubemqctl.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/kwt.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/lab.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/lane.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/levant.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/melt.toml

This file was deleted.

11 changes: 0 additions & 11 deletions registry/opsgenie-lamp.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/pachctl.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/psc-package.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/purerl.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/redo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/rke.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/sinker.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/soracom.toml

This file was deleted.

5 changes: 0 additions & 5 deletions registry/starboard.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/sver.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/terradozer.toml

This file was deleted.

2 changes: 0 additions & 2 deletions registry/titan.toml

This file was deleted.

7 changes: 0 additions & 7 deletions registry/uaa.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/wasm4.toml

This file was deleted.

4 changes: 0 additions & 4 deletions registry/wren.toml

This file was deleted.

3 changes: 0 additions & 3 deletions registry/zbctl.toml

This file was deleted.

Loading