Repository navigation
feat: ADDON-90824 run RFCT comparisons on WFE with Argo - #550
mbruzda-splunk wants to merge 22 commits into
Conversation
### Description Fix aggregate test-report jobs when a test matrix produces a single summary artifact, and pin the AppInspect CLI action to v2.1.1 (ref: https://splunk.slack.com/archives/C9YHF0HEJ/p1781698303793169). ### Checklist - [x] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [ ] pull request trigger tests - [ ] schedule trigger tests - [x] workflow errors/warnings reviewed and addressed ### Testing done - `git diff --check` passed. - `actionlint` passed with the repository's unrelated pre-existing `create-github-app-token` and `vendor-version` diagnostics excluded. - Shell-level summary discovery check passed for zero, one, and multiple artifact layouts. - Isolated PR branch contains only `.github/workflows/reusable-build-test-release.yml` changes. - https://github.com/splunk/splunk-add-on-for-symantec-endpoint-protection/actions/runs/33163176345
### Description UI tests started failing since Splunk 10.6 due to disabled TLS on Splunk instances. This manifests change enables TLS and HTTPS for relevant ports. ### Checklist - [x] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [x] pull request trigger tests - [ ] schedule trigger tests - [ ] workflow errors/warnings reviewed and addressed ### Testing done https://github.com/splunk/splunk-add-on-for-servicenow/pull/1019/checks
## Summary Backport the ADDON-91799 pip 26.3 workaround to `main` so it can be reviewed and released as a fix. The implementation applies pip 26.0.1 only when the installed UCC supports `--pip-version`, with capability detection performed independently in both Python package-build jobs. Older UCC releases retain the previous build invocation. This is a main-based fix PR; the related develop PR is [#548](#548). ## Validation - `git diff --check` passed. - The same workflow change passed both `build` (Python 3.9) and `build (3.13)` in fixture run [41804401718](https://github.com/splunk/test-addonfactory-repo/actions/runs/41804401718) on the develop-based implementation. This PR will run checks against the main-based patch. - Per Marcin's request, I will run an affected add-on against this main-based commit before the fix release. Tracking: [ADDON-91799](https://splunk.atlassian.net/browse/ADDON-91799)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 06c5524dde
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
rasteja
left a comment
There was a problem hiding this comment.
The compare API returns changed files only on its first page and caps that list at 300; later pages paginate commits, not files. This pagination loop can therefore receive fewer than PER_PAGE files and incorrectly conclude the list is complete, causing RFCT to be skipped when a relevant path is omitted. Please use a complete diff enumeration strategy or fail closed when completeness cannot be established, and update the long-diff test to model the API limit.
rasteja
left a comment
There was a problem hiding this comment.
Approved. The compare API file-limit handling, realistic regression tests, and planner action pin are present in the reviewed head; CI passed.
Current request: review and manual develop integration only. Auto-merge is disabled. Stable release and template rollout will happen later.
Eligible CIM mapping changes now compare the latest usable stable TA release with the package built in the current run. Argo runs the comparison on WFE using two isolated Splunk deployments and one generated corpus replayed independently to both versions. GitHub receives comparison JSON, versioned CIM-change documentation, frozen provenance and diagnostics.
Behavior and configuration
mainand pushes tomain, after relevant-path and baseline checks. Fork PRs and other events/branches do not start RFCT. The job remains advisory and outsidepre-publish..spl, excluding the current build commit. Peel annotated tags to the commit. Warn and retain an audit when a newer release has no usable package; record a skip when no baseline exists.rfct-imageis the only RFCT-specific public input and defaults to the approved digest-pinned RFCT 1.1.0 image.k8s-manifests-branch. Resolve a branch/tag once with a scoped read-only App token, freeze the SHA in the request, and pass it to both provisioners and the worker. The controller owns the Argo template default.Diagnostics and local checks
Planner, input preparation and controller emit bounded, credential-redacted stderr records with runner-command injection protection. The planner writes JSON and a safe Markdown summary; artifacts retain the baseline-selection audit,
controller-events.jsonland worker logs.Candidate
6a2a389dec321048083c88fc62c2b5971f37ebf7: 210 tests passed, 97.14% coverage, full configured pre-commit/actionlint/hygiene passed, and current-head CI is green. Main’s UCC pip, UI and summary/AppInspect fixes are retained. Three TA Validator actions use reachable reviewed sourcee884eebinstead of an unresolved future tag.The compare-file-limit review fix reads files only from page one and raises an explicit planning error at 300 or more entries, before path filtering. Exactly 300 is rejected because the API cannot prove the list is complete. Realistic tests cover the cap, a mapping beyond it, PR/push routing and rename paths; release pagination is preserved. Helper fix
5ea0ccdis the planner-action pin used by the workflow at6a2a389. Earlier staging runs below used06c5524; they are prior-head integration evidence, not new testing of the cap fix.Integrated functional validation
06c5524, no selection labels and no latest-only override. Both Python unit jobs passed 198 tests each; both builds, five btool, five Chrome UI, seven modinput and RFCT jobs passed. UI totals across five versions: 40 passed, 5 existing AQA-1103 skips, 0 failures; management HTTPS/8089, KV Store readiness and teardown were exercised.2de6a0e, with identical historical JUnit signatures. Only those three XML lines were restored on disposable caller head6d4c918, reproducing the exact pre-break blob and retaining all 2,085 elements and assertions.Succeeded/no-changes, 90 HEC events per side, six phase exits of0, baseline0.8.7and candidate0.396.42849130876, versioned docs, report and progress logs. Request, both provisioners and worker agree on runtimef73f3a39344a13634afe4b2561e70fc559c70825and the approved RFCT 1.1.0 digest.main/developand the helper branch remain unchanged.These are affected functional-path passes, not complete fixture CI green. FOSSA remains failed and unwaived with 17 issues (the historical gate failed with 18; finding inventories are not claimed identical). AppInspect cloud remains failed and unwaived on
check_modular_inputs_python_requiredandcheck_admin_external_restmap_conf_python_required, mismatchingappinspect.expect; the report artifact is retained. No historical AppInspect match is claimed. The experimental docs workflow is a separate known fixture failure. Owner/security decisions remain outstanding. GS/UCC expected skips are documented; absent fixture capabilities are not claimed as validated.Review and manual develop integration
The current scope is bundling this implementation into
develop. No auto-merge. Approval is a review outcome; merging remains a separate manual action under normal protection.The P2 changed-file-limit finding is addressed by helper commit
5ea0ccdand separate pin commit6a2a389; regression tests and current-head CI passed. Fresh human review remains required.develop, matching approved/tested head, current successful checks/reviews andautoMergeRequest: null.5ea0ccd. This head already includes reconciliation46925c9from fix: ADDON-90824 preserve main fixes before RFCT release #551; a separate merge of fix: ADDON-90824 preserve main fixes before RFCT release #551 is unnecessary. Verify develop ancestry and CI afterward.Develop is not a configured semantic-release branch; this integration does not publish the stable release or move aliases. Explicit
@developconsumers do receive the code and still need compatible manifests/Argo resources. The preparedv4.5default is a future runtime dependency; use the reviewed compatible feature branch and staging setup for development execution until publication.Deferred main release and rollout
Main promotion #552 stays a deferred draft. Runtime publication, canonical Argo deployment, production/released-tag canaries, final bundled-head review and caller/template rollout are later release gates, not requirements to store reviewed code on develop. Future main publication can move both workflow minor and major aliases, so production readiness still precedes it. No main merge, tag publication, production deployment, template rollout, bypass or security waiver is part of this plan update. Do not merge the older alternative RFCT PR #547 alongside this implementation.