Skip to content

Conversation

@ydbot
Copy link
Collaborator

@ydbot ydbot commented Nov 28, 2025

Changelog entry

Badges to PR body: ...
Not for changelog (changelog entry is not required)

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

Original PR(s)

Metadata

Conflicts Require Manual Resolution

This PR contains merge conflicts that require manual resolution.

Files with conflicts:

How to resolve conflicts:

git fetch origin
git checkout --track origin/cherry-pick-stable-25-3-251128-155304
# Resolve conflicts in files
git add .
git commit -m "Resolved merge conflicts"
git push

After resolving conflicts:

  1. Fix the PR title (remove [CONFLICT] if conflicts are resolved)
  2. Mark PR as ready for review

Git Cherry-Pick Log

=== Cherry-picking e773933 ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
CONFLICT (content): Merge conflict in .github/actions/validate_pr_description/validate_pr_description.py
Auto-merging .github/workflows/run_tests.yml
CONFLICT (content): Merge conflict in .github/workflows/run_tests.yml

error: could not apply e7739333763... Add PR comment functionality for test runs
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

=== Cherry-picking 7cb6b55 ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
[cherry-pick-stable-25-3-251128-155304 575f15a6c4e] Enhance PR comment functionality and add local validation script
 Author: naspirato <naspirato@gmail.com>
 Date: Thu Nov 27 23:38:30 2025 +0100
 3 files changed, 257 insertions(+), 32 deletions(-)
 create mode 100644 .github/actions/validate_pr_description/test_validation.py

=== Cherry-picking 6664623 ===
Auto-merging .github/workflows/run_tests.yml
CONFLICT (content): Merge conflict in .github/workflows/run_tests.yml

error: could not apply 66646233288... Refactor PR comment script to streamline summary handling
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

=== Cherry-picking 5e1d4a5 ===
Auto-merging .github/workflows/run_tests.yml
CONFLICT (content): Merge conflict in .github/workflows/run_tests.yml

error: could not apply 5e1d4a56d99... Enhance GitHub Actions workflow to post start comments on PRs
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

=== Cherry-picking f13b3bb ===
Auto-merging .github/workflows/run_tests.yml
[cherry-pick-stable-25-3-251128-155304 23cf622e82c] Update GitHub Actions workflow to include sparse checkout for run_tests action
 Author: naspirato <naspirato@gmail.com>
 Date: Thu Nov 27 23:54:28 2025 +0100
 1 file changed, 1 insertion(+)

=== Cherry-picking f6045b9 ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
[cherry-pick-stable-25-3-251128-155304 7020a397a64] Refactor type hints in cherry_pick_v2.py for consistency
 Author: naspirato <naspirato@gmail.com>
 Date: Fri Nov 28 00:17:02 2025 +0100
 1 file changed, 1 insertion(+), 1 deletion(-)

=== Cherry-picking 0c21bf9 ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
[cherry-pick-stable-25-3-251128-155304 a3f0ca4f832] Enhance error handling in PR comment and validation scripts
 Author: naspirato <naspirato@gmail.com>
 Date: Fri Nov 28 09:44:21 2025 +0100
 2 files changed, 39 insertions(+), 21 deletions(-)

=== Cherry-picking 653a87a ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
[cherry-pick-stable-25-3-251128-155304 08c6585f6b2] Enhance PR description validation to conditionally include legend
 Author: naspirato <naspirato@gmail.com>
 Date: Fri Nov 28 09:51:26 2025 +0100
 1 file changed, 14 insertions(+), 3 deletions(-)

=== Cherry-picking b1a9058 ===
[cherry-pick-stable-25-3-251128-155304 e0e6a397358] Implement GITHUB_REPOSITORY detection in local validation script
 Author: naspirato <naspirato@gmail.com>
 Date: Fri Nov 28 09:53:43 2025 +0100
 1 file changed, 51 insertions(+), 1 deletion(-)

=== Cherry-picking f26ecb6 ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
[cherry-pick-stable-25-3-251128-155304 ff16d904f0b] Remove command-line argument for PR description validation in `validate_pr_description.py`. The script now directly uses the PR body for validation, streamlining the process and improving usability.
 Author: naspirato <naspirato@gmail.com>
 Date: Fri Nov 28 09:56:05 2025 +0100
 1 file changed, 1 deletion(-)

=== Cherry-picking 0bc0853 ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
[cherry-pick-stable-25-3-251128-155304 53c5f51a371] Update PR description validation to support new table flags
 Author: naspirato <naspirato@gmail.com>
 Date: Fri Nov 28 10:27:52 2025 +0100
 4 files changed, 58 insertions(+), 24 deletions(-)

=== Cherry-picking cc94ffb ===
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py
[cherry-pick-stable-25-3-251128-155304 947d0cdbc26] Refactor backport table generation in PR description validation
 Author: naspirato <naspirato@gmail.com>
 Date: Fri Nov 28 11:58:54 2025 +0100
 1 file changed, 13 insertions(+), 3 deletions(-)

=== Cherry-picking 3059110 ===
CONFLICT (modify/delete): .github/actions/validate_pr_description/pr_template.py deleted in HEAD and modified in 3059110fa2f (Enhance PR description validation with improved issue pattern matching).  Version 3059110fa2f (Enhance PR description validation with improved issue pattern matching) of .github/actions/validate_pr_description/pr_template.py left in tree.
Auto-merging .github/actions/validate_pr_description/validate_pr_description.py

error: could not apply 3059110fa2f... Enhance PR description validation with improved issue pattern matching
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

=== Cherry-picking 0f0d768 ===
[cherry-pick-stable-25-3-251128-155304 6354f44f384] Update .github/actions/validate_pr_description/test_validation.py
 Author: Kirill Rysin <35688753+naspirato@users.noreply.github.com>
 Date: Fri Nov 28 15:17:07 2025 +0100
 1 file changed, 1 insertion(+), 1 deletion(-)

PR was created by cherry-pick workflow run

naspirato and others added 14 commits November 28, 2025 15:55
This commit updates the PR comment script to include a workflow run URL in comments, improving traceability of test runs. It also modifies message formatting for better visibility. Additionally, a new script for local validation of PR descriptions is introduced, allowing users to test and validate PR bodies before submission. This script supports table generation for test execution and backport actions based on environment configurations.

Key changes:
- Updated `create_or_update_comment` function to accept and display workflow run URL.
- Improved message formatting in PR comments.
- Added `test_validation.py` for local PR description validation and table generation testing.
- Enhanced table generation logic in `validate_pr_description.py` to support side-by-side display of test and backport tables.
…ts action

This commit enhances the GitHub Actions workflow by adding the `run_tests` action to the sparse checkout configuration. This change ensures that the necessary files for running tests are included in the checkout process, improving the workflow's efficiency and reliability.

Key changes:
- Added `.github/actions/run_tests/` to the sparse checkout list.
This commit updates the `cherry_pick_v2.py` script to ensure consistent use of type hints by removing unnecessary comments that specify the `PullRequest` type. This change enhances code clarity and maintains flexibility in handling various object types.

Key changes:
- Removed comments indicating specific types for `pull_requests` and related functions.
- Streamlined function signatures to improve readability and maintainability.
This commit improves the error handling in the `pr_comment.py` and `validate_pr_description.py` scripts by adding try-except blocks around critical operations. This change ensures that failures in updating comments or PR bodies are logged with appropriate error messages, enhancing the robustness and traceability of the scripts.

Key changes:
- Added error handling for comment updates and creations in `pr_comment.py`.
- Implemented error handling for PR body updates in `validate_pr_description.py`.
- Introduced checks for required environment variables to prevent runtime errors.
This commit updates the `validate_pr_description.py` script to check for the presence of a legend in the PR body before appending it. If the legend already exists, it will not be added again, improving the clarity and conciseness of PR descriptions.

Key changes:
- Added a check for the legend's existence in the PR body.
- Modified the logic for appending tables and the legend to ensure no duplicates are included.
This commit enhances the `test_validation.py` script by adding functionality to automatically determine the GitHub repository from the git remote URL. This improvement allows for better local testing by setting the `GITHUB_REPOSITORY` environment variable if it is not already defined.

Key changes:
- Introduced `find_github_repository` function to extract the repository name from the git remote URL.
- Updated the main function to set `GITHUB_REPOSITORY` for local testing, improving usability and reducing manual setup requirements.
- Enhanced documentation to clarify the automatic setting of `GITHUB_WORKSPACE` and `GITHUB_REPOSITORY` environment variables.
…te_pr_description.py`. The script now directly uses the PR body for validation, streamlining the process and improving usability.
This commit modifies the `validate_pr_description` workflow to introduce two new environment variables: `SHOW_RUN_TESTS_IN_PR` and `SHOW_BACKPORT_IN_PR`. These flags control the inclusion of test execution and backport tables in the PR body. The `ensure_tables_in_pr_body` function is updated to handle these flags, allowing for more flexible table generation based on user requirements.

Key changes:
- Replaced `SHOW_ADDITIONAL_INFO_IN_PR` with the new flags in the action configuration.
- Updated `test_validation.py` to reflect the new environment variables and their usage.
- Enhanced `validate_pr_description.py` to conditionally add tables based on the new flags, improving the clarity and usability of PR descriptions.
This commit enhances the `generate_backport_table` function in `validate_pr_description.py` to collect and sort unique branches from the input. The changes ensure that the backporting URL is generated for all unique branches, improving the accuracy and clarity of the backport table in PR descriptions.

Key changes:
- Updated logic to collect unique branches from multiple entries.
- Sorted branches for consistent output.
- Modified the backport button label for clarity.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Nov 28, 2025

🟢 2025-11-28 16:34:10 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Nov 28, 2025

2025-11-28 16:09:16 UTC Pre-commit check linux-x86_64-relwithdebinfo for fdf03ac has started.
2025-11-28 16:09:48 UTC Artifacts will be uploaded here
2025-11-28 16:13:09 UTC ya make is running...
🟢 2025-11-28 16:13:14 UTC Tests successful.

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-11-28 16:13:20 UTC Build successful.

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.

4 participants