fix: sweep only test - #1044
fix: sweep only test#1044tng1-equinix wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent Fabric sweeper jobs from deleting resources created by other parallel acceptance test suites by scoping sweeping to a specific test “target” via an environment variable.
Changes:
- Added
SWEEP_TARGET-based filtering to Fabric sweeper resource-name matching. - Set
SWEEP_TARGETvalues in the Fabric acceptance-test GitHub Actions workflow sweeper steps.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
internal/sweep/sweep.go |
Introduces SWEEP_TARGET filtering for determining which Fabric test resources are sweepable. |
.github/workflows/fabric_acctest.yml |
Sets SWEEP_TARGET per sweeper job to scope deletion to the corresponding test suite. |
| if v := os.Getenv("SWEEP_TARGET"); v != "" { | ||
| return strings.HasSuffix("_"+resourceName, v) | ||
| } |
WORKFLOW-25 · Pull Request Comments for Secrets ScanningWorkflows: "WORKFLOW-25 · Pull Request Comments for Secrets Scanning"
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1044 +/- ##
===========================================
+ Coverage 28.27% 72.52% +44.24%
===========================================
Files 175 175
Lines 21742 21744 +2
===========================================
+ Hits 6148 15769 +9621
+ Misses 15465 5084 -10381
- Partials 129 891 +762 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: tng1-equinix <tng1@ap.equinix.com>
With our current pipeline, it is possible (likely even), that a test suite ends earlier than the other, which causes it to sweep all of the resources, which causes another test suite to fail