Skip to content

Conversation

@theihor
Copy link
Contributor

@theihor theihor commented Jul 1, 2025

This PR fixes two bugs introduced in #4, and discovered after deployment.

Also minimum Python is bumped to 3.10

See commits for more details.

theihor added 3 commits July 2, 2025 09:36
This allows to run the test from an arbitrary working directory.

Signed-off-by: Ihor Solodrai <[email protected]>
Skip branches for which branch name was _not_ parsed successfully.

This bug was introduced in 462b933

Signed-off-by: Ihor Solodrai <[email protected]>
parse_pr_ref assumed well formed branch names, which in some cases
leads to a crash on attempt to extract int series_id.

For example "some/branch" would call int("branch").

It turns out that it also matter for "not relevant" branches, because
when doing cleanup KPD examines all PRs.

Add unit tests for parse_pr_ref() to make sure it does not crash.

Signed-off-by: Ihor Solodrai <[email protected]>
theihor added 3 commits July 2, 2025 09:40
dependabot reported a vulnerability CVE-2024-12797 fixed in 44.0.1

Signed-off-by: Ihor Solodrai <[email protected]>
3.9 is EOL in October 2025 [1].

Also match statement was introduced in 3.10, and it is used in the
tests.

[1] https://peps.python.org/pep-0596/

Signed-off-by: Ihor Solodrai <[email protected]>
@theihor theihor changed the title Various fixes Fixes in github_sync and other updates Jul 2, 2025
@theihor theihor marked this pull request as ready for review July 2, 2025 17:15
@theihor theihor merged commit aae4e0a into main Jul 2, 2025
5 checks passed
@theihor theihor deleted the misc-fixes branch July 2, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants