Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jul 3, 2025

When generating issue content for releases, some PRs were being filtered out
during processing (e.g., dependabot PRs, doc-only PRs) but still remained in
the pull_requests dictionary. This caused a KeyError when the Jinja2 template
tried to access user_logins for PRs that had no corresponding user data.

The fix ensures that pr_list variable only contains PRs that have corresponding entries
in the users dictionary, preventing the template from accessing undefined keys.

Fixes issue where breeze release-management generate-issue-content-core
command failed with "UndefinedError: dict object has no element <PR_NUMBER>".
(cherry picked from commit 19da281)

Co-authored-by: Kaxil Naik kaxilnaik@gmail.com

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Jul 3, 2025
@kaxil kaxil marked this pull request as ready for review July 3, 2025 06:40
@kaxil kaxil force-pushed the v3-0-test branch 5 times, most recently from 0044ec7 to 19b81f6 Compare July 9, 2025 19:33
@kaxil kaxil force-pushed the v3-0-test branch 2 times, most recently from 61f3916 to c57bd9c Compare July 11, 2025 17:17
@eladkal
Copy link
Contributor

eladkal commented Jul 12, 2025

This is not important for v3.0
this is internal script to generate the testing issue
I think we can close this pr

@potiuk
Copy link
Member

potiuk commented Jul 12, 2025

This is not important for v3.0

But it's used for airlfow releases as well

…2751)

When generating issue content for releases, some PRs were being filtered out
during processing (e.g., dependabot PRs, doc-only PRs) but still remained in
the `pull_requests` dictionary. This caused a `KeyError` when the Jinja2 template
tried to access `user_logins` for PRs that had no corresponding user data.

The fix ensures that `pr_list` variable only contains PRs that have corresponding entries
in the users dictionary, preventing the template from accessing undefined keys.

Fixes issue where `breeze release-management generate-issue-content-core`
command failed with "UndefinedError: dict object has no element <PR_NUMBER>".
(cherry picked from commit 19da281)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
@potiuk potiuk force-pushed the backport-19da281-v3-0-test branch from 01b95ee to 90e5660 Compare July 12, 2025 10:56
@eladkal
Copy link
Contributor

eladkal commented Jul 12, 2025

But it's used for airlfow releases as well

Not from main?

@potiuk
Copy link
Member

potiuk commented Jul 12, 2025

Not from main?

Yes when release is prepared all breeze commands are run from v3-0-test - this is also why we are cherry-picking the dev tooling.

@potiuk potiuk merged commit d77fd5d into v3-0-test Jul 12, 2025
74 checks passed
@potiuk potiuk deleted the backport-19da281-v3-0-test branch July 12, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants