You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Addresses review feedback from PR #471
10 items identified and fixed from Copilot reviewer comments on the
Azure Blob Storage PR.
### Code fixes (Linus)
- **Added `--format` flag** to `waza results list` and `waza results
compare` — supports `table` (default) and `json`
- **Generic error messages** — replaced hardcoded "Azure Storage" with
`cfg.Storage.Provider` in `autoUploadOutcomes`
- **Fixed `Storage.Enabled` merge** — now allows `enabled: false` to
override `enabled: true`
### Azure fixes (Virgil)
- **CI environment detection** — `isCI()` checks for `CI`,
`GITHUB_ACTIONS`, `TF_BUILD`, `JENKINS_URL`, `CODEBUILD_BUILD_ID` before
attempting `az login`
- **Download optimization** — tries suffix-based blob lookup first
before falling back to full scan
- **Shared `buildMetricDeltas`** — moved from local.go to store.go for
both implementations
### Doc fixes (Livingston)
- **Blob path examples** — corrected from date-based to
`{skill-name}/{run-id}.json` format
- **`--limit` default** — fixed from 10 to 20 to match implementation
- **`--format json` examples** — verified consistent across README, CLI
docs, and guide
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
// In CI environments, skip interactive az login and return a clear message.
82
+
ifisCI() {
83
+
returnnil, fmt.Errorf("azure credentials not available in CI: set AZURE_CLIENT_ID/AZURE_CLIENT_SECRET/AZURE_TENANT_ID environment variables (original error: %v)", err)
84
+
}
85
+
67
86
// If credential creation failed, attempt auto-login.
68
-
// This handles cases where no auth is configured (no env vars, no managed identity, etc.)
69
-
fmt.Fprintln(os.Stderr, "Azure credentials not available, attempting 'az login'...")
87
+
// This handles interactive cases where no auth is configured (no env vars, no managed identity, etc.)
88
+
_, _=fmt.Fprintln(os.Stderr, "Azure credentials not available, attempting 'az login'...")
0 commit comments