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

[ci] Migrate branch consistency and protection checks to Buildkite #101646

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

brianseeders
Copy link
Contributor

@brianseeders brianseeders commented Oct 31, 2023

  • Migrate the branch checks to Buildkite
  • Go ahead and disable them in Jenkins
  • Add a few changes to pipeline templates that were accidentally only added to the generated files
  • Fix MAX_WORKERS being 0 on small workers

@brianseeders brianseeders added >non-issue >test-mute Use for PR that only mute tests :Delivery/Tooling Developer tooliing and automation buildkite-opt-in Opts your PR into Buildkite instead of Jenkins v8.11.1 v8.12.0 v7.17.15 v8.10.5 labels Oct 31, 2023
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Oct 31, 2023
@brianseeders brianseeders requested a review from a team November 2, 2023 16:30
buildDirectory: /dev/shm/bk
- label: part3
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart3
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
machineType: n1-standard-32
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 update the machine type on the BWC jobs as well? I just noticed one fail in intake today with a killed test worker.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do that separately, I only changed this one in this branch because it's actually already this machine type, it's just not reflected in the template

@@ -31,5 +31,10 @@ if ! uname -a | grep -q MING; then
export GLIBC_VERSION=$(ldd --version | grep '^ldd' | sed 's/.* \([1-9]\.[0-9]*\).*/\1/')
fi

# Running on 2-core machines without ramdisk can make this value be 0
if [[ "$MAX_WORKERS" == "0" ]]; then
MAX_WORKERS=1
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 just make it the number of CPUs then in that case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, I think it only ends up as 0 if the number of CPUs is 1 or 2... I was thinking that on a 2-CPU machine, there might not really be enough resources to effectively run two tasks in parallel, what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can leave it at one and tweak later.

@brianseeders brianseeders merged commit dee880a into main Nov 2, 2023
1 check passed
@brianseeders brianseeders deleted the migrate-branch-checks branch November 2, 2023 18:34
brianseeders added a commit to brianseeders/elasticsearch that referenced this pull request Nov 2, 2023
brianseeders added a commit to brianseeders/elasticsearch that referenced this pull request Nov 2, 2023
brianseeders added a commit to brianseeders/elasticsearch that referenced this pull request Nov 2, 2023
…lastic#101646)

(cherry picked from commit dee880a)

# Conflicts:
#	.buildkite/pipelines/intake.template.yml
@brianseeders
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.11
8.10
7.17

Questions ?

Please refer to the Backport tool documentation

brianseeders added a commit that referenced this pull request Nov 2, 2023
brianseeders added a commit that referenced this pull request Nov 2, 2023
brianseeders added a commit that referenced this pull request Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildkite-opt-in Opts your PR into Buildkite instead of Jenkins :Delivery/Tooling Developer tooliing and automation >non-issue Team:Delivery Meta label for Delivery team >test-mute Use for PR that only mute tests v7.17.15 v8.10.5 v8.11.1 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants