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

Ensure ordered DRA artifacts #39270

Merged
merged 7 commits into from
Apr 30, 2024

Conversation

dliappis
Copy link
Contributor

@dliappis dliappis commented Apr 29, 2024

Proposed commit message

As things are now we allow parallel builds on the
packaging pipeline, which would result in out of order artifacts (depending on which one takes longer to finish).

This commit leverages a queue to ensure a FIFO queue for DRA artifacts using the design pattern in:
https://buildkite.com/blog/concurrency-gates

Related issues

Testing/Screenshots

Using the latest approach, I triggered two DRA main snapshot builds in succession using the env vars:

DRA_BRANCH="main"
RUN_SNAPSHOT="true"
DRY_RUN="true"

and was able to see the first one triggered proceed:

image
image

whereas the second one was paused (as desired) waiting for the snapshot concurrency group:

image

It would have been nice to trigger a staging build at the same time (which should allow one job at a time, since it's a different concurrency gate) but it's not easy given the conditionals.

@dliappis dliappis self-assigned this Apr 29, 2024
@dliappis dliappis requested a review from a team as a code owner April 29, 2024 15:31
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Apr 29, 2024
Copy link
Contributor

mergify bot commented Apr 29, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @dliappis? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

As things are now we allow parallel builds on the
packaging pipeline, which would result in out of order
artifacts (depending on which one takes longer to finish).

This commit leverages a queue to ensure a FIFO queue
for DRA artifacts.
@dliappis dliappis force-pushed the fix-out-of-order-dra-artifacts branch from 73e0a93 to 482b87c Compare April 29, 2024 15:34
@elasticmachine
Copy link
Collaborator

elasticmachine commented Apr 29, 2024

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2024-04-30T07:00:55.653+0000

  • Duration: 14 min 44 sec

Test stats 🧪

Test Results
Failed 0
Passed 2
Skipped 0
Total 2

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@dliappis dliappis force-pushed the fix-out-of-order-dra-artifacts branch from 382bf03 to d6c7dc2 Compare April 30, 2024 07:00
@dliappis dliappis added backport-v7.17.0 Automated backport with mergify backport-v8.13.0 Automated backport with mergify backport-v8.14.0 Automated backport with mergify labels Apr 30, 2024
@dliappis dliappis merged commit d275f27 into elastic:main Apr 30, 2024
12 checks passed
mergify bot pushed a commit that referenced this pull request Apr 30, 2024
As things are now we allow parallel builds on the
packaging pipeline, which could result in out of order
artifacts (depending on which one takes longer to finish).

This commit implements two "queues" (snapshot/staging)
to ensure ordered builds of DRA artifacts.

Relates https://github.com/elastic/ingest-dev/issues/3095

(cherry picked from commit d275f27)

# Conflicts:
#	.buildkite/packaging.pipeline.yml
mergify bot pushed a commit that referenced this pull request Apr 30, 2024
As things are now we allow parallel builds on the
packaging pipeline, which could result in out of order
artifacts (depending on which one takes longer to finish).

This commit implements two "queues" (snapshot/staging)
to ensure ordered builds of DRA artifacts.

Relates https://github.com/elastic/ingest-dev/issues/3095

(cherry picked from commit d275f27)

# Conflicts:
#	.buildkite/packaging.pipeline.yml
mergify bot pushed a commit that referenced this pull request Apr 30, 2024
As things are now we allow parallel builds on the
packaging pipeline, which could result in out of order
artifacts (depending on which one takes longer to finish).

This commit implements two "queues" (snapshot/staging)
to ensure ordered builds of DRA artifacts.

Relates https://github.com/elastic/ingest-dev/issues/3095

(cherry picked from commit d275f27)
dliappis added a commit that referenced this pull request Apr 30, 2024
As things are now we allow parallel builds on the
packaging pipeline, which could result in out of order
artifacts (depending on which one takes longer to finish).

This commit implements two "queues" (snapshot/staging)
to ensure ordered builds of DRA artifacts.

Relates https://github.com/elastic/ingest-dev/issues/3095

(cherry picked from commit d275f27)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
pazone pushed a commit that referenced this pull request Apr 30, 2024
As things are now we allow parallel builds on the
packaging pipeline, which could result in out of order
artifacts (depending on which one takes longer to finish).

This commit implements two "queues" (snapshot/staging)
to ensure ordered builds of DRA artifacts.

Relates elastic/ingest-dev#3095
pazone pushed a commit that referenced this pull request Apr 30, 2024
As things are now we allow parallel builds on the
packaging pipeline, which could result in out of order
artifacts (depending on which one takes longer to finish).

This commit implements two "queues" (snapshot/staging)
to ensure ordered builds of DRA artifacts.

Relates elastic/ingest-dev#3095
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v7.17.0 Automated backport with mergify backport-v8.13.0 Automated backport with mergify backport-v8.14.0 Automated backport with mergify Team:Ingest-EngProd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants