fix(ci): skip network-dependent OCI tests in goreleaser pre-hook - #309
Conversation
Add -short flag to all goreleaser build pre-hooks so that TestOCIFeatureTestSuite/TestProcessOCIFeature_HappyPath is skipped during release builds. The test pulls a live OCI image from ghcr.io and the XDG_CACHE_HOME override doesn't work on macOS runners, causing the extracted directory to be missing and the build to fail.
✅ Deploy Preview for devsydev canceled.
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
TestOCIFeatureTestSuite/TestProcessOCIFeature_HappyPathinpkg/devcontainer/featuremakes a live OCI pull fromghcr.io/devcontainers/features/go:1. On macOS runners, theXDG_CACHE_HOMEoverride in the test does not remap the cache directory (macOS uses~/Library/Caches, not XDG paths), so the extracted directory is never written where the test expects it, causingpre hook failed: exit status 1and blocking the release build.-shortto all three goreleaser build pre-hookgo testinvocations (devsy,devsy-linux,devsy-darwin). The test already containsif testing.Short() { t.Skip(...) }, so it is intentionally designed to be skipped in CI/release contexts.