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

[werft] Improve findFreeHostPorts speed #9361

Merged
merged 1 commit into from
Apr 20, 2022
Merged

[werft] Improve findFreeHostPorts speed #9361

merged 1 commit into from
Apr 20, 2022

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Apr 16, 2022

Release Notes

[werft] Improve findFreeHostPorts speed

@aledbf aledbf marked this pull request as ready for review April 16, 2022 11:53
@aledbf aledbf requested a review from a team April 17, 2022 21:19
@kylos101
Copy link
Contributor

kylos101 commented Apr 19, 2022

/werft run

👍 started the job as gitpod-build-aledbf-werft.12

Copy link
Contributor

@mads-hartmann mads-hartmann 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, preview environment works and logs for the job looks fine. Approving. I have a single clarifying comment, but nothing worth blocking this on.

werft.log(shellOpts.slice, `already reserved ports: ${Array.from(alreadyReservedPorts.values()).map(p => "" + p).join(", ")}`);

const results: number[] = [];
for (const range of ranges) {
if (results.length > 4) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we only need 5 free ports?

@roboquat roboquat merged commit 1998a98 into main Apr 20, 2022
@roboquat roboquat deleted the aledbf/werft branch April 20, 2022 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants