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: system tests: make random_free_port() parallel-safe #23595

Merged

Conversation

edsantiago
Copy link
Member

...by using a crude port lock-and-reserve mechanism. This is
a small cherrypick from code that has been working in #23275
over dozens of CI runs. Am separating out into a small PR
because it's stable, harmless to serial runs, and will
simplify the eventual review of #23275.

Closes: #23488

Signed-off-by: Ed Santiago [email protected]

None

@openshift-ci openshift-ci bot added release-note-none approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 12, 2024
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

I think we need to free some ports at some point or start increasing the port range we use. Because with how many ports pasta test allocate we might block a lot of ports which means finding a random free one in the range might take a while, espcailly if we have to find a free port range not just a single one.

test/system/helpers.network.bash Outdated Show resolved Hide resolved
@edsantiago edsantiago force-pushed the parallel-safe-random-free-port branch from 476a47e to 86ddd10 Compare August 13, 2024 13:50
@edsantiago edsantiago marked this pull request as draft August 13, 2024 13:51
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 13, 2024
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

changes LGTM

Copy link
Contributor

openshift-ci bot commented Aug 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: edsantiago, Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@edsantiago
Copy link
Member Author

Seem to be working in my parallel PR. I need to fix the .t file tho.

...by using a crude port lock-and-reserve mechanism. This is
a small cherrypick from code that has been working in containers#23275
over dozens of CI runs. Am separating out into a small PR
because it's stable, harmless to serial runs, and will
simplify the eventual review of containers#23275.

Closes: containers#23488

Signed-off-by: Ed Santiago <[email protected]>
@edsantiago edsantiago force-pushed the parallel-safe-random-free-port branch from 86ddd10 to 420bd16 Compare August 15, 2024 16:04
@edsantiago edsantiago marked this pull request as ready for review August 15, 2024 16:05
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 15, 2024
@rhatdan
Copy link
Member

rhatdan commented Aug 16, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 8c132cc into containers:main Aug 16, 2024
61 checks passed
@edsantiago edsantiago deleted the parallel-safe-random-free-port branch August 19, 2024 11:22
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Nov 18, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: system tests: make random_free_port() parallel-safe
3 participants