Skip to content

fix(tests): improve TOCTOU checks in getFreePort#753

Open
xnyo wants to merge 3 commits into
mainfrom
giuseppe/fix-act-port-toctou
Open

fix(tests): improve TOCTOU checks in getFreePort#753
xnyo wants to merge 3 commits into
mainfrom
giuseppe/fix-act-port-toctou

Conversation

@xnyo
Copy link
Copy Markdown
Member

@xnyo xnyo commented May 27, 2026

Improves TOCTOU checks in getFreePort to avoid flaky CI failures due to errors like this:

TestContext/pull_request/non-fork_from_regular_user_(testing): [] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
  TestContext/pull_request/non-fork_from_regular_user_(testing): [] Start server on http://172.16.253.54:44963/
  TestContext/pull_request/non-fork_from_regular_user_(testing): [] listen tcp 172.16.253.54:44963: bind: address already in use

Example: https://github.com/grafana/plugin-ci-workflows/actions/runs/26446584668/job/77854387243

@xnyo xnyo self-assigned this May 27, 2026
@xnyo xnyo added bug Something isn't working github_actions Pull requests that update GitHub Actions code labels May 27, 2026
@xnyo xnyo moved this from 📬 Triage to 🧑‍💻 In development in Grafana Catalog Team May 27, 2026
@xnyo xnyo marked this pull request as ready for review May 27, 2026 18:59
@xnyo xnyo requested a review from a team as a code owner May 27, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working github_actions Pull requests that update GitHub Actions code github-actions

Projects

Status: 🧑‍💻 In development

Development

Successfully merging this pull request may close these issues.

1 participant