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: fix test splits that have less test packages than runner count from hanging #17080

Merged
merged 11 commits into from
Apr 21, 2023

Conversation

jmurret
Copy link
Member

@jmurret jmurret commented Apr 20, 2023

Description

In 1.13, there are only two compatibility test packages. So when a generate matrix job has a TOTAL_RUNNERS of 5 but there are only 2 packages, the process hangs. This PR changes the runner count to 2 in this case.

Another issue that occurs that is fixed in this PR is that when you specify TOTAL_RUNNERS = 4, you will actually split across 5 runners. (The same occurs with any number you set TOTAL_RUNNERS to. You will actually get 1 greater.)

@jmurret jmurret added pr/no-changelog PR does not need a corresponding .changelog entry backport/1.13 backport/1.15 This release series is no longer active on CE. Use backport/ent/1.15. labels Apr 20, 2023
@jmurret jmurret requested a review from loshz April 20, 2023 22:34
@github-actions github-actions bot added theme/contributing Additions and enhancements to community contributing materials type/ci Relating to continuous integration (CI) tooling for testing or releases labels Apr 20, 2023
Copy link
Contributor

@loshz loshz left a comment

Choose a reason for hiding this comment

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

Just the one comment about the push trigger. The rest are non-blocking syntactic bash NITs.

.github/workflows/test-integrations.yml Outdated Show resolved Hide resolved
.github/workflows/test-integrations.yml Outdated Show resolved Hide resolved
.github/workflows/test-integrations.yml Outdated Show resolved Hide resolved
.github/workflows/test-integrations.yml Outdated Show resolved Hide resolved
@jmurret jmurret requested a review from loshz April 21, 2023 15:20
@jmurret jmurret merged commit b19359c into main Apr 21, 2023
@jmurret jmurret deleted the jm/runner-count branch April 21, 2023 16:01
lonecalvary78 pushed a commit to lonecalvary78/consul that referenced this pull request Apr 22, 2023
…om hanging (hashicorp#17080)

* use proper TOTAL_RUNNER setting when generating runner matrix.  if matrix size is smaller than total_runners, use the smaller number

* try again

* try again 2

* try again 3

* try again 4

* try again 5

* try scenario where number is less

* reset

* get rid of cat "$GITHUB_OUTPUT"

* Apply suggestions from code review

Co-authored-by: Dan Bond <danbond@protonmail.com>

* removing push trigger that was added for debug

---------

Co-authored-by: Dan Bond <danbond@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.15 This release series is no longer active on CE. Use backport/ent/1.15. pr/no-changelog PR does not need a corresponding .changelog entry theme/contributing Additions and enhancements to community contributing materials type/ci Relating to continuous integration (CI) tooling for testing or releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants