-
Notifications
You must be signed in to change notification settings - Fork 148
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
Split packaging into separate steps #6401
Open
oakrizan
wants to merge
3
commits into
main
Choose a base branch
from
split-packaging
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+92
−29
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,28 +4,84 @@ env: | |
DOCKER_REGISTRY: "docker.elastic.co" | ||
VAULT_PATH: "kv/ci-shared/observability-ingest/cloud/gcp" | ||
|
||
# Packaging | ||
SNAPSHOT: true | ||
EXTERNAL: true | ||
|
||
steps: | ||
- label: "Integration tests: packaging" | ||
key: "package-it" | ||
command: ".buildkite/scripts/steps/integration-package.sh" | ||
artifact_paths: | ||
- build/distributions/** | ||
agents: | ||
provider: "gcp" | ||
machineType: "n1-standard-8" | ||
- group: "Integration tests: packaging" | ||
steps: | ||
- label: "Packaging: Ubuntu x86_64" | ||
key: "packaging-ubuntu-x86-64" | ||
env: | ||
PACKAGES: "tar.gz" | ||
PLATFORMS: "linux/amd64" | ||
command: ".buildkite/scripts/steps/integration-package.sh" | ||
artifact_paths: | ||
- build/distributions/** | ||
agents: | ||
provider: "gcp" | ||
machineType: "n1-standard-8" | ||
|
||
- label: "Packaging: Ubuntu arm64" | ||
key: "packaging-ubuntu-arm64" | ||
env: | ||
PACKAGES: "tar.gz" | ||
PLATFORMS: "linux/arm64" | ||
command: ".buildkite/scripts/steps/integration-package.sh" | ||
artifact_paths: | ||
- build/distributions/** | ||
agents: | ||
provider: "gcp" | ||
machineType: "n1-standard-8" | ||
|
||
- label: "Packaging: Windows" | ||
key: "packaging-windows" | ||
env: | ||
PACKAGES: "zip" | ||
PLATFORMS: "windows/amd64" | ||
command: ".buildkite/scripts/steps/integration-package.sh" | ||
artifact_paths: | ||
- build/distributions/** | ||
agents: | ||
provider: "gcp" | ||
machineType: "n1-standard-8" | ||
|
||
- label: "Packaging: Containers {{matrix.ext}} {{matrix.arch}}" | ||
key: "packaging-containers" | ||
env: | ||
PACKAGES: "{{matrix.ext}}" | ||
PLATFORMS: "{{matrix.arch}}" | ||
command: ".buildkite/scripts/steps/integration-package.sh" | ||
artifact_paths: | ||
- build/distributions/** | ||
agents: | ||
provider: "gcp" | ||
machineType: "n1-standard-8" | ||
matrix: | ||
setup: | ||
arch: | ||
- linux/amd64 | ||
- linux/arm64 | ||
ext: | ||
- rpm | ||
- deb | ||
|
||
- label: "Serverless integration test" | ||
key: "serverless-integration-tests" | ||
depends_on: | ||
- package-it | ||
- packaging-ubuntu-x86-64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NIT: Can we use the group key instead of mentioning all the steps? |
||
- packaging-ubuntu-arm64 | ||
- packaging-windows | ||
- packaging-containers | ||
concurrency_group: elastic-agent-extended-testing/serverless-integration | ||
concurrency: 8 | ||
env: | ||
# we run each step in a different data center to spread the load | ||
TEST_INTEG_AUTH_GCP_DATACENTER: "us-central1-a" | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
.buildkite/scripts/steps/integration_tests.sh serverless integration:single TestLogIngestionFleetManaged #right now, run a single test in serverless mode as a sort of smoke test, instead of re-running the entire suite | ||
commands: | ||
- buildkite-agent artifact download "build/distributions/**" . --build $BUILDKITE_BUILD_ID | ||
- .buildkite/scripts/steps/integration_tests.sh serverless integration:single TestLogIngestionFleetManaged #right now, run a single test in serverless mode as a sort of smoke test, instead of re-running the entire suite | ||
artifact_paths: | ||
- "build/TEST-**" | ||
- "build/diagnostics/*" | ||
|
@@ -39,14 +95,17 @@ steps: | |
- label: "Extended runtime leak tests" | ||
key: "extended-integration-tests" | ||
depends_on: | ||
- package-it | ||
- packaging-ubuntu-x86-64 | ||
- packaging-ubuntu-arm64 | ||
- packaging-windows | ||
- packaging-containers | ||
concurrency_group: elastic-agent-extended-testing/leak-tests | ||
concurrency: 8 | ||
env: | ||
TEST_INTEG_AUTH_GCP_DATACENTER: "us-central1-b" | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
.buildkite/scripts/steps/integration_tests.sh stateful integration:TestForResourceLeaks | ||
commands: | ||
- buildkite-agent artifact download "build/distributions/**" . --build $BUILDKITE_BUILD_ID | ||
- .buildkite/scripts/steps/integration_tests.sh stateful integration:TestForResourceLeaks | ||
artifact_paths: | ||
- "build/TEST-**" | ||
- "build/diagnostics/*" | ||
|
@@ -59,23 +118,26 @@ steps: | |
|
||
- label: "Triggering Integration tests" | ||
depends_on: | ||
- package-it | ||
- packaging-ubuntu-x86-64 | ||
- packaging-ubuntu-arm64 | ||
- packaging-windows | ||
- packaging-containers | ||
trigger: "elastic-agent-extended-testing-bk" | ||
build: | ||
commit: "${BUILDKITE_COMMIT}" | ||
branch: "${BUILDKITE_BRANCH}" | ||
|
||
- label: "Serverless Beats Tests" | ||
depends_on: | ||
- package-it | ||
- packaging-ubuntu-x86-64 | ||
key: "serverless-beats-integration-tests" | ||
concurrency_group: elastic-agent-extended-testing/beats-integration | ||
concurrency: 8 | ||
env: | ||
TEST_INTEG_AUTH_GCP_DATACENTER: "us-central1-a" | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
.buildkite/scripts/steps/beats_tests.sh | ||
commands: | ||
- buildkite-agent artifact download "build/distributions/**" . --build $BUILDKITE_BUILD_ID | ||
- .buildkite/scripts/steps/beats_tests.sh | ||
agents: | ||
provider: "gcp" | ||
machineType: "n1-standard-8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# Set required env vars | ||
source .buildkite/scripts/common.sh | ||
|
||
PACKAGES=tar.gz,zip,rpm,deb PLATFORMS=linux/amd64,linux/arm64,windows/amd64 SNAPSHOT=true EXTERNAL=true mage package | ||
mage package |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend returning those variables to the packaging script to reduce the scope