chore(flare): replace mholt/archiver with archive/zip #3363
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 245 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.329
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3363"
general
weight: 0.35
wdhif
What does this PR do?
Replaces
github.com/mholt/archiver/v3inkubectl datadog flarewith Go's standardarchive/zippackage. It removes the old module and regenerates the dependency and third-party license files.With a regular staging directory, the ZIP keeps its top-level
datadog-operator/directory and the collected files beneath it. The writer skips symlinks and other special files, reserves the archive filename exclusively, and removes incomplete archives after errors. Compression sizes and error messages can differ.Motivation
The deprecated package carries extraction advisories. The flare command only writes ZIP files, so the standard library covers the format it needs. Upstream deprecation notice · ZIP advisory · TAR advisory
In local darwin/arm64 builds, removing the old package reduced the plugin size by about 2.1 MB compared with
main.Minimum Agent Versions
None. The change is confined to the kubectl plugin.
Describe your test plan
go test ./... ./api/...,make lint, andmake verify-licenseswith Go 1.26.11.mainand this branch, then ran both against the same local Kubernetes fixture with upload declined. Both ZIPs passed integrity checks and matched on entry order, compression methods, permissions, and extracted contents. The fixture API key was redacted in both.Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits