Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[buildkite] Add Windows packaging and platform support tests to periodic pipeline #98072

Merged
merged 8 commits into from
Aug 9, 2023

Conversation

brianseeders
Copy link
Contributor

@brianseeders brianseeders commented Jul 31, 2023

This PR adds the platform/packaging tests that are run on Windows to the new Buildkite periodic pipeline.

Linux jobs will be added in a separate PR.

See here for test builds: https://buildkite.com/elastic/brianseeders-elasticsearch-sandbox/builds?branch=buildkite-migration-periodic-windows

See also: https://elasticco.atlassian.net/jira/software/c/projects/ES/boards/297?modal=detail&selectedIssue=ES-6358

  • Add windows pre-command hook for setting up env vars / etc
  • Add pipeline definitions
  • Add gnarly workaround for buildkite-agent hanging job issue
  • Make run-gradle.sh also work with Windows (previously unix only)
  • Fix some environmental things that only worked in Jenkins
  • Fix ReaperService to kill child processes correctly
  • Fix buildkite annotations by using ProcessBuilder.start()

@brianseeders brianseeders added >non-issue :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v8.10.0 v8.9.1 v7.17.13 labels Jul 31, 2023
@brianseeders brianseeders marked this pull request as ready for review August 3, 2023 18:16
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@brianseeders brianseeders requested a review from a team August 8, 2023 18:24
Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

Couple comments but otherwise LGTM.


SET JAVA_HOME=%USERPROFILE%\.java\%ES_BUILD_JAVA%
SET JAVA11_HOME=%USERPROFILE%\.java\java11
SET JAVA16_HOME=%USERPROFILE%\.java\openjdk16
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I'm wondering why we'd need Java 16. I think we can ditch this.

@@ -121,12 +121,12 @@ buildScan {
buildScanPublished { scan ->
// Attach build scan link as build metadata
// See: https://buildkite.com/docs/pipelines/build-meta-data
['buildkite-agent', 'meta-data', 'set', "build-scan-${System.getenv('BUILDKITE_JOB_ID')}", "${scan.buildScanUri}"].execute()
new ProcessBuilder('buildkite-agent', 'meta-data', 'set', "build-scan-${System.getenv('BUILDKITE_JOB_ID')}", "${scan.buildScanUri}").start()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also call waitFor() here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, yep, thanks.

@brianseeders brianseeders merged commit dfadca8 into main Aug 9, 2023
13 checks passed
@brianseeders brianseeders deleted the buildkite-migration-periodic-windows branch August 9, 2023 15:51
brianseeders added a commit to brianseeders/elasticsearch that referenced this pull request Aug 9, 2023
@brianseeders
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.9
7.17

Questions ?

Please refer to the Backport tool documentation

brianseeders added a commit that referenced this pull request Aug 9, 2023
brianseeders added a commit that referenced this pull request Aug 28, 2023
…o periodic pipeline (#98072) (#98329)

* [buildkite] Add Windows packaging and platform support tests to periodic pipeline (#98072)

(cherry picked from commit dfadca8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v7.17.13 v8.9.1 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants