Skip to content

feat: ADDON-90824 run RFCT comparisons on WFE with Argo - #550

Open
mbruzda-splunk wants to merge 22 commits into
developfrom
feat/ADDON-90824-rfct-argo
Open

mbruzda-splunk wants to merge 22 commits into
developfrom
feat/ADDON-90824-rfct-argo

Conversation

@mbruzda-splunk

@mbruzda-splunk mbruzda-splunk commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Run automatically for trusted PRs targeting main and pushes to main, after relevant-path and baseline checks. Fork PRs and other events/branches do not start RFCT. The job remains advisory and outside pre-publish.
  • Select the highest numeric stable release with an identifiable .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.
  • Always use this run’s successful build as the candidate. rfct-image is the only RFCT-specific public input and defaults to the approved digest-pinned RFCT 1.1.0 image.
  • Reuse 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.
  • Validate package identity, versions, checksums, archive paths and returned workflow UID/image/version. Preserve original failures, retry bounded transient polls and request graceful paired cleanup on timeout/cancellation.

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.jsonl and 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 source e884eeb instead 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 5ea0ccd is the planner-action pin used by the workflow at 6a2a389. Earlier staging runs below used 06c5524; they are prior-head integration evidence, not new testing of the cap fix.

Integrated functional validation

  • Full standard staging run 42843036339 used workflow 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.
  • The original knowledge failures matched deliberate fixture corruption from commit 2de6a0e, with identical historical JUnit signatures. Only those three XML lines were restored on disposable caller head 6d4c918, reproducing the exact pre-break blob and retaining all 2,085 elements and assertions.
  • Targeted follow-up 42849130876 kept the same workflow/helper code: 3,391 knowledge tests passed, 264 existing skips, 0 failures or errors across all five versions. Each version retained exactly the same 731 testcase IDs and skipped IDs; all three repaired cases passed everywhere. Its five btool jobs and RFCT passed again. Passing UI/modinput paths are covered by the full run.
  • The final RFCT job and artifact 13781385153 show Succeeded / no-changes, 90 HEC events per side, six phase exits of 0, baseline 0.8.7 and candidate 0.396.42849130876, versioned docs, report and progress logs. Request, both provisioners and worker agree on runtime f73f3a39344a13634afe4b2561e70fc559c70825 and the approved RFCT 1.1.0 digest.
  • All 12 follow-up namespaces are absent, including the actual nonce-qualified RFCT pair. Six temporary support resources were removed. Fixture PR fix: mitigate selenium pull rate limits #396 was closed without merging, only its owned branch was deleted, and shared fixture main/develop and 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_required and check_admin_external_restmap_conf_python_required, mismatching appinspect.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 5ea0ccd and separate pin commit 6a2a389; regression tests and current-head CI passed. Fresh human review remains required.

  1. Obtain the one required human approval for the final diff. Automated COMMENTED reviews and independent agent review do not satisfy that requirement.
  2. Immediately before a manual merge, confirm target develop, matching approved/tested head, current successful checks/reviews and autoMergeRequest: null.
  3. Manually merge with a merge commit, preserving the pinned internal-action ancestors, including 5ea0ccd. This head already includes reconciliation 46925c9 from 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 @develop consumers do receive the code and still need compatible manifests/Argo resources. The prepared v4.5 default 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.

mkolasinski-splunk and others added 18 commits August 28, 2026 15:49
### 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)
@mbruzda-splunk
mbruzda-splunk marked this pull request as ready for review November 12, 2026 13:45
@mbruzda-splunk
mbruzda-splunk requested a review from a team as a code owner November 12, 2026 13:45
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T09:37:03.339125Z 6a2a389 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .github/actions/plan-rfct/plan.py Resolved

@rasteja rasteja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 rasteja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The compare API file-limit handling, realistic regression tests, and planner action pin are present in the reviewed head; CI passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants