Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jul 2, 2025

What does this PR do?

As request in previous PR reviews this PR introduces Single mage targets for the serverless and leak integration test packages, similar to the existing TestKubernetesSingle target. It adds the following functions to the magefile.go:

  • TestServerlessSingle
  • TestForResourceLeaksSingle

Internally, both new targets delegate to shared helper functions that support selecting a specific test by name. This unifies the way we run individual integration tests across packages and prepares the mage targets for further package splits.

Why is it important?

As part of the effort to split the increasingly large integration test suite into smaller dedicated packages (see parent issue), we also need to ensure that developers can run individual tests from each new package using a consistent interface.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

None. This PR only introduces new mage targets for developer convenience without affecting existing workflows.

How to test this PR locally

Invoke the new mage targets 🙂

Related issues


This is an automatic backport of pull request #8691 done by [Mergify](https://mergify.com).

* feat: support running a single test for serverless and resource leak integration tests

* doc: update test-framework-dev-guide.md to include the latest mage targets

(cherry picked from commit 2ec9992)
@mergify mergify bot requested a review from a team as a code owner July 2, 2025 13:30
@mergify mergify bot added the backport label Jul 2, 2025
@mergify mergify bot requested review from michalpristas and ycombinator and removed request for a team July 2, 2025 13:30
@mergify mergify bot added the backport label Jul 2, 2025
@github-actions github-actions bot added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog labels Jul 2, 2025
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 2, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @pkoutsovasilis

@pkoutsovasilis pkoutsovasilis merged commit e5cc0ce into 8.18 Jul 2, 2025
21 checks passed
@pkoutsovasilis pkoutsovasilis deleted the mergify/bp/8.18/pr-8691 branch July 2, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants