Skip to content

ROX-34425: resolve file access violations#20218

Open
Stringy wants to merge 1 commit intomasterfrom
giles/fix-splunk-cim-file-access
Open

ROX-34425: resolve file access violations#20218
Stringy wants to merge 1 commit intomasterfrom
giles/fix-splunk-cim-file-access

Conversation

@Stringy
Copy link
Copy Markdown
Contributor

@Stringy Stringy commented Apr 24, 2026

Description

Further strictness for splunk TA tests, and ensure file access tests resolve violations to avoid contamination of other test suites.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

CI should be enough (with ci-all-qa-tests label)

@Stringy Stringy requested a review from janisz as a code owner April 24, 2026 15:58
@Stringy Stringy added ci-all-qa-tests Tells CI to run all API tests (not just BAT). auto-retest PRs with this label will be automatically retested if prow checks fails labels Apr 24, 2026
@Stringy
Copy link
Copy Markdown
Contributor Author

Stringy commented Apr 24, 2026

/test ocp-4-21-qa-e2e-tests

@Stringy
Copy link
Copy Markdown
Contributor Author

Stringy commented Apr 24, 2026

/retest-times 10 ocp-4-21-qa-e2e-tests

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

🚀 Build Images Ready

Images are ready for commit 31ffd5f. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-778-g31ffd5fea6

Comment on lines +135 to 138
def nonFileAccessAlerts = alerts.findAll { !isViolationOfType(it, "FILE_ACCESS") }
for (alert in nonFileAccessAlerts) {
validateCimMappings(alert)
}
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.

It can be a oneliner

alerts.findAll { !isViolationOfType(it, "FILE_ACCESS") }.each { alert -> validateCimMappings(alert) }

Or even less if we use .& but I've never used it

alerts.findAll { !isViolationOfType(it, "FILE_ACCESS") }.each(this.&validateCimMappings)

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.79%. Comparing base (121ffc3) to head (31ffd5f).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #20218   +/-   ##
=======================================
  Coverage   49.79%   49.79%           
=======================================
  Files        2770     2770           
  Lines      210212   210212           
=======================================
  Hits       104667   104667           
  Misses      97823    97823           
  Partials     7722     7722           
Flag Coverage Δ
go-unit-tests 49.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rhacs-bot
Copy link
Copy Markdown
Contributor

/test ocp-4-21-qa-e2e-tests

3 similar comments
@rhacs-bot
Copy link
Copy Markdown
Contributor

/test ocp-4-21-qa-e2e-tests

@rhacs-bot
Copy link
Copy Markdown
Contributor

/test ocp-4-21-qa-e2e-tests

@rhacs-bot
Copy link
Copy Markdown
Contributor

/test ocp-4-21-qa-e2e-tests

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

Labels

auto-retest PRs with this label will be automatically retested if prow checks fails ci-all-qa-tests Tells CI to run all API tests (not just BAT).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants