Skip to content

Conversation

@pchila
Copy link
Member

@pchila pchila commented Jun 27, 2025

What does this PR do?

Re-enable TestStandaloneUpgradeRollbackOnRestarts integration test on windows.
Modifications introduced with #8407 should have fixed the timing issue that made TestStandaloneUpgradeRollbackOnRestarts flaky on windows

Why is it important?

To re-enable testing of rolling back upgrade on windows operating systems

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

How to test this PR locally

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

@pchila pchila self-assigned this Jun 27, 2025
@pchila pchila added the Testing label Jun 27, 2025
@mergify
Copy link
Contributor

mergify bot commented Jun 27, 2025

This pull request does not have a backport label. Could you fix it @pchila? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label that automatically backports to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@pchila
Copy link
Member Author

pchila commented Jul 1, 2025

Repeated runs for windows and linux upgrade group (to test how flaky the re-enabled test is):

In 4 repeated runs (+1 regular run for the normal pipeline steps), the test was consistently green ✔️

Modifications introduced with elastic#8407
should have fixed the timing issue that made TestStandaloneUpgradeRollbackOnRestarts
flaky on windows
@pchila pchila force-pushed the re-enable-test-on-win branch from e6929cf to 3996dac Compare July 1, 2025 09:39
@pchila pchila marked this pull request as ready for review July 1, 2025 09:40
@pchila pchila requested a review from a team as a code owner July 1, 2025 09:40
Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing the underlying cause and re-enabling this test!

@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

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @pchila

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Jul 1, 2025
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@pkoutsovasilis pkoutsovasilis left a comment

Choose a reason for hiding this comment

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

LGTM and thanks for handling this, only one small ask please update the issue #6733 of what changed and this now is no more flaky 🙂

@pchila pchila merged commit 4334c60 into elastic:main Jul 3, 2025
20 checks passed
v1v added a commit to v1v/elastic-agent that referenced this pull request Jul 6, 2025
…ng-oblt-cli

* upstream: (37 commits)
  [AutoOps] Add `autoops-es.yml` to Packages (elastic#8728)
  EDOT collector: include the forward connector. (elastic#8753)
  Revert "ci: pin elastic-agent version (elastic#8736)" (elastic#8754)
  bk: retry Start ESS stack for integration tests (elastic#8553)
  Re-enable TestStandaloneUpgradeRollbackOnRestarts on windows (elastic#8718)
  removed reviewers from dependabot.yml (elastic#8709)
  Pass `--header` enrollment option to fleet-server (elastic#8071)
  Add ability for local output configuration to add to policy configuration (elastic#8766)
  Bump up github.com/go-viper/mapstructure/v2 dependency (elastic#8764)
  [Synthetics] Upgrade node to latest lts v20 (elastic#8712)
  [CI] BK Vault plugin for EC access (elastic#8377)
  feat: singleTest mage target for each integration test package (elastic#8691)
  ci: always include 8.19 LTS release branch in snapshots of test versions (elastic#8761)
  build(deps): bump github.com/elastic/mito from 1.19.0 to 1.20.0 (elastic#8755)
  chore: fix elastic-agent helm chart examples (elastic#8765)
  feat: support onboarding-id for kubernetes (elastic#8692)
  [main][Automation] Bump VM Image version to 1751072471 (elastic#8734)
  ci: revert deployment_csp_configuration.yaml to create_deployment_csp_configuration.yaml (elastic#8746)
  kustomize: pin kube-state-metrics version (elastic#8739)
  ci: pin elastic-agent version (elastic#8736)
  ...
v1v added a commit that referenced this pull request Jul 6, 2025
* upstream: (39 commits)
  Fix otel extension status reporting (#8696)
  Refactor user change on service (#8347)
  [AutoOps] Add `autoops-es.yml` to Packages (#8728)
  EDOT collector: include the forward connector. (#8753)
  Revert "ci: pin elastic-agent version (#8736)" (#8754)
  bk: retry Start ESS stack for integration tests (#8553)
  Re-enable TestStandaloneUpgradeRollbackOnRestarts on windows (#8718)
  removed reviewers from dependabot.yml (#8709)
  Pass `--header` enrollment option to fleet-server (#8071)
  Add ability for local output configuration to add to policy configuration (#8766)
  Bump up github.com/go-viper/mapstructure/v2 dependency (#8764)
  [Synthetics] Upgrade node to latest lts v20 (#8712)
  [CI] BK Vault plugin for EC access (#8377)
  feat: singleTest mage target for each integration test package (#8691)
  ci: always include 8.19 LTS release branch in snapshots of test versions (#8761)
  build(deps): bump github.com/elastic/mito from 1.19.0 to 1.20.0 (#8755)
  chore: fix elastic-agent helm chart examples (#8765)
  feat: support onboarding-id for kubernetes (#8692)
  [main][Automation] Bump VM Image version to 1751072471 (#8734)
  ci: revert deployment_csp_configuration.yaml to create_deployment_csp_configuration.yaml (#8746)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

5 participants