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
55 changes: 46 additions & 9 deletions .github/workflows/registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,41 +169,78 @@ jobs:
TEST_TRANCHE: ${{ matrix.tranche }}
TEST_TRANCHE_COUNT: ${{ needs.list-changed-tools.outputs.tools == '' && 8 || 1 }}
run: |
summary_dir="$RUNNER_TEMP/test-tool-${{ matrix.tranche }}"
rm -rf "$summary_dir"
mkdir -p "$summary_dir"
chmod 777 "$summary_dir"
summary_file="$summary_dir/summary.md"

set +e
docker run --rm \
-v "$PWD:/mise-src:ro" \
-v "$PWD/target/debug/mise:/usr/local/bin/mise:ro" \
-v "$GITHUB_STEP_SUMMARY:/tmp/github_summary" \
-v "$summary_dir:/tmp/github-summary" \
-e GITHUB_TOKEN="${POOL_TOKEN:-}" \
-e GITHUB_STEP_SUMMARY=/tmp/github_summary \
-e GITHUB_STEP_SUMMARY=/tmp/github-summary/summary.md \
-e TEST_TRANCHE="$TEST_TRANCHE" \
-e TEST_TRANCHE_COUNT="$TEST_TRANCHE_COUNT" \
-e MISE_EXPERIMENTAL=1 \
-e MISE_LOCKFILE=1 \
-e MISE_USE_VERSIONS_HOST_TRACK=0 \
-e RUST_BACKTRACE=1 \
ghcr.io/jdx/mise:e2e \
mise test-tool ${{ needs.list-changed-tools.outputs.tools == '' && '--all' || needs.list-changed-tools.outputs.tools }} || true
failed_tools=$(grep "Failed Tools" "$GITHUB_STEP_SUMMARY" | sed 's/\*\*Failed Tools\*\*: //' | tr ',' ' ')
mise test-tool ${{ needs.list-changed-tools.outputs.tools == '' && '--all' || needs.list-changed-tools.outputs.tools }}
test_tool_status=$?
set -e

if [ -f "$summary_file" ]; then
cat "$summary_file" >> "$GITHUB_STEP_SUMMARY"
failed_tools=$(grep "Failed Tools" "$summary_file" | sed 's/\*\*Failed Tools\*\*: //' | tr ',' ' ' || true)
else
failed_tools=""
fi
echo "failed_tools=$failed_tools" >> "$GITHUB_OUTPUT"
if [ "$test_tool_status" -ne 0 ] && [ -z "$failed_tools" ]; then
echo "::error::mise test-tool exited with status $test_tool_status without reporting failed tools"
exit "$test_tool_status"
fi
- name: Retry failed tools
id: retry
if: steps.test-tools.outputs.failed_tools != ''
run: |
summary_lines=$(wc -l < "$GITHUB_STEP_SUMMARY")
summary_dir="$RUNNER_TEMP/test-tool-retry-${{ matrix.tranche }}"
rm -rf "$summary_dir"
mkdir -p "$summary_dir"
chmod 777 "$summary_dir"
summary_file="$summary_dir/summary.md"

set +e
docker run --rm \
-v "$PWD:/mise-src:ro" \
-v "$PWD/target/debug/mise:/usr/local/bin/mise:ro" \
-v "$GITHUB_STEP_SUMMARY:/tmp/github_summary" \
-v "$summary_dir:/tmp/github-summary" \
-e GITHUB_TOKEN="${POOL_TOKEN:-}" \
-e GITHUB_STEP_SUMMARY=/tmp/github_summary \
-e GITHUB_STEP_SUMMARY=/tmp/github-summary/summary.md \
-e MISE_EXPERIMENTAL=1 \
-e MISE_LOCKFILE=1 \
-e MISE_USE_VERSIONS_HOST_TRACK=0 \
-e RUST_BACKTRACE=1 \
ghcr.io/jdx/mise:e2e \
mise test-tool ${{ steps.test-tools.outputs.failed_tools }} || true
failed_tools=$(tail -n "+$((summary_lines+1))" "$GITHUB_STEP_SUMMARY" | grep "Failed Tools" | sed 's/\*\*Failed Tools\*\*: //' | tr ',' ' ')
mise test-tool ${{ steps.test-tools.outputs.failed_tools }}
test_tool_status=$?
set -e

if [ -f "$summary_file" ]; then
cat "$summary_file" >> "$GITHUB_STEP_SUMMARY"
failed_tools=$(grep "Failed Tools" "$summary_file" | sed 's/\*\*Failed Tools\*\*: //' | tr ',' ' ' || true)
else
failed_tools=""
fi
echo "failed_tools=$failed_tools" >> "$GITHUB_OUTPUT"
if [ "$test_tool_status" -ne 0 ] && [ -z "$failed_tools" ]; then
echo "::error::mise test-tool retry exited with status $test_tool_status without reporting failed tools"
exit "$test_tool_status"
fi
- name: Handle retry failures
if: steps.retry.outputs.failed_tools != '' && github.head_ref != 'release' && github.ref != 'refs/heads/release'
run: |
Expand Down
2 changes: 1 addition & 1 deletion crates/aqua-registry/aqua-registry/metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"repository": "aquaproj/aqua-registry",
"tag": "v4.501.0"
"tag": "v4.505.0"
}
Loading
Loading