Skip to content

Remove MC from AWS Appframework Tests (Phase 1)#1868

Draft
gabrielm-splunk wants to merge 2 commits intodevelopfrom
remove-mc-aws-appframework-phase1
Draft

Remove MC from AWS Appframework Tests (Phase 1)#1868
gabrielm-splunk wants to merge 2 commits intodevelopfrom
remove-mc-aws-appframework-phase1

Conversation

@gabrielm-splunk
Copy link
Copy Markdown
Collaborator

Summary

Removes unnecessary Monitoring Console deployments from AWS appframework tests (s1, m4, c3).

Motivation

MC is deployed in these tests but is not the test subject. Each MC deployment adds 4-9 minutes overhead per test. This PR removes MC from AWS appframework tests to improve test execution time.

Changes

Files Modified:

  • test/appframework_aws/s1/appframework_aws_test.go - 303 lines removed, 9 tests modified
  • test/appframework_aws/m4/appframework_aws_test.go - 209 lines removed, 15 tests modified
  • test/appframework_aws/m4/manager_appframework_test.go - 143 lines removed, 17 tests modified
  • test/appframework_aws/c3/appframework_aws_test.go - 141 lines removed, 2 tests modified
  • test/appframework_aws/c3/manager_appframework_test.go - 207 lines removed, 22 tests modified

Total: 1,049 lines removed (net), 65 tests modified

Specific Removals:

  • MC deployment sections (S3 uploads, app framework specs, deployment calls)
  • MonitoringConsoleRef from CR specifications
  • MC verification calls (VerifyMonitoringConsoleReady)
  • MC app source info from verification arrays
  • MC pod arrays from test logic
  • Updated test comments to remove MC references

Expected Impact

Time Savings: 2-3 hours per full AWS appframework test run

  • 65 tests × 4-9 minutes per test = 260-585 minutes saved
  • Conservative estimate: ~4.3 hours → ~2.0 hours (48% reduction)

Resource Savings:

  • Fewer S3 uploads (no MC apps)
  • Fewer pods deployed (no MC StatefulSets)
  • Reduced network overhead (no MC peer registration)

No Functionality Loss: MC is not being tested in these suites

Testing

Compilation: All 5 files compile successfully with ginkgo build

  • test/appframework_aws/s1/s1.test - 35 MB
  • test/appframework_aws/m4/m4.test - 80 MB
  • test/appframework_aws/c3/c3.test - 120 MB

CI Pipeline: GitHub Actions running (full test suite validation)

Related Work

  • Part of MC removal initiative tracked in /remove-mc-infrastructure skill
  • Post PR CSPL-3775 extract common code in tests #1788 refactor research and planning
  • Phase 1 of 3:
    • Phase 1 (this PR): AWS appframework tests (5 files)
    • Phase 2 (future): Azure & GCP appframework tests (10 files)
    • Phase 3 (future): Shared test functions (3 files)

Checklist

  • All files compile without errors
  • No MC references remain in modified files
  • No unused imports or variables
  • Test comments updated
  • Clean git diff
  • CI tests pass
  • Duration comparison shows improvement

Notes

Previous MC removal attempts (PR #1864, #1865) were obsoleted by the PR #1788 refactor. This PR is based on fresh research of the post-refactor codebase.

Removes unnecessary Monitoring Console deployments from AWS
appframework test suite (s1, m4, c3). MC is not the test subject
in these tests, just an incidental deployment adding 4-9 minutes
overhead per test.

Changes:
- Remove MC deployment sections (S3 uploads, app framework specs)
- Remove MonitoringConsoleRef from CR specs
- Pass empty string for mcRef parameters in deployment functions
- Remove MC verification calls (VerifyMonitoringConsoleReady)
- Remove MC app source info from verification arrays
- Remove MC pod arrays from verification logic
- Update test comments to remove MC references
- Fix variable scoping issues post-MC removal

Files Modified:
- test/appframework_aws/s1/appframework_aws_test.go (303 lines removed, 9 tests)
- test/appframework_aws/m4/appframework_aws_test.go (209 lines removed, 15 tests)
- test/appframework_aws/m4/manager_appframework_test.go (143 lines removed, 17 tests)
- test/appframework_aws/c3/appframework_aws_test.go (141 lines removed, 2 tests)
- test/appframework_aws/c3/manager_appframework_test.go (207 lines removed, 22 tests)

Total: 1,049 lines removed (net), 65 tests modified, all files compile successfully.

Expected impact: 2-3 hour reduction in AWS appframework test runtime
(65 tests × 4-9 minutes per test = 260-585 minutes saved).

Refs: /remove-mc-infrastructure skill, sok-testing-expert
Remove extra blank lines per go fmt standards.
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.

1 participant