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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
- name: "Migrate rbenv Ruby to dtvem"
run: |
echo "=== Running migrate detection ==="
echo -e "1\n0\nn\n" | ./dist/dtvem migrate ruby || true
# Select "all" sources and "0" for all versions (rbenv may not be first source)
echo -e "all\n0\nn\n" | ./dist/dtvem migrate ruby || true
echo ""
echo "=== Verifying migration ==="
./dist/dtvem list ruby
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
- name: "Migrate rbenv Ruby to dtvem"
run: |
echo "=== Running migrate detection ==="
echo -e "1\n0\nn\n" | ./dist/dtvem migrate ruby || true
# Select "all" sources and "0" for all versions (rbenv may not be first source)
echo -e "all\n0\nn\n" | ./dist/dtvem migrate ruby || true
echo ""
echo "=== Verifying migration ==="
./dist/dtvem list ruby
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/integration-test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,27 @@ jobs:
# Verify test versions are available using --filter and stripping ANSI codes
echo "Verifying test versions are available..."

# Check version1
# Check version1 - handle rate limiting gracefully
FILTERED=$(./dtvem${{ matrix.ext }} list-all ruby --filter "${{ matrix.version1 }}" 2>&1 | sed 's/\x1B\[[0-9;]*[a-zA-Z]//g')
if echo "$FILTERED" | grep -qE "(HTTP 403|HTTP 429|rate limit)"; then
echo "⚠ Warning: GitHub API rate limited, skipping version verification"
echo "Proceeding with install - it will fail if version doesn't exist"
exit 0
fi
if ! echo "$FILTERED" | grep -qF "${{ matrix.version1 }}"; then
echo "ERROR: Version ${{ matrix.version1 }} not found in available versions"
echo "Filtered output: $FILTERED"
exit 1
fi
echo "✓ Version ${{ matrix.version1 }} is available"

# Check version2
# Check version2 - handle rate limiting gracefully
FILTERED=$(./dtvem${{ matrix.ext }} list-all ruby --filter "${{ matrix.version2 }}" 2>&1 | sed 's/\x1B\[[0-9;]*[a-zA-Z]//g')
if echo "$FILTERED" | grep -qE "(HTTP 403|HTTP 429|rate limit)"; then
echo "⚠ Warning: GitHub API rate limited, skipping version verification"
echo "Proceeding with install - it will fail if version doesn't exist"
exit 0
fi
if ! echo "$FILTERED" | grep -qF "${{ matrix.version2 }}"; then
echo "ERROR: Version ${{ matrix.version2 }} not found in available versions"
echo "Filtered output: $FILTERED"
Expand Down