Skip to content

Fixes in github_sync and other updates #9

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

Merged
merged 6 commits into from
Jul 2, 2025
Merged

Fixes in github_sync and other updates #9

merged 6 commits into from
Jul 2, 2025

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.

1 participant