Skip to content

Conversation

@naspirato
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

@github-actions
Copy link

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

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 12:13:19 UTC Pre-commit check linux-x86_64-release-asan for 704ab72 has started.
2025-11-10 12:13:35 UTC Artifacts will be uploaded here
2025-11-10 12:15:44 UTC ya make is running...
🟢 2025-11-10 12:15:51 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-11-10 12:15:59 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 12:13:43 UTC Pre-commit check linux-x86_64-relwithdebinfo for 704ab72 has started.
2025-11-10 12:14:00 UTC Artifacts will be uploaded here
2025-11-10 12:16:17 UTC ya make is running...
🟢 2025-11-10 12:16:25 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-11-10 12:16:34 UTC Build successful.

@naspirato naspirato marked this pull request as ready for review November 10, 2025 12:28
Copilot AI review requested due to automatic review settings November 10, 2025 12:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors muted tests workflows to extract common YDB update logic into a reusable workflow and introduces a new helper script for post-merge processing.

  • Extracts YDB update operations into a reusable workflow update_ydb_for_muted_tests.yml
  • Changes create_issues_for_muted_tests.yml to trigger on PR merge (closed event) instead of PR approval
  • Adds new helper script process_muted_tests_after_merge.py for retrieving muted_ya.txt and commenting on PRs

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/update_muted_ya.yml Updates to use the new reusable workflow and changes checkout ref to muted_ya_new_iteration
.github/workflows/reusable/update_ydb_for_muted_tests.yml New reusable workflow consolidating YDB update operations previously duplicated across workflows
.github/workflows/create_issues_for_muted_tests.yml Refactored to use the reusable workflow and trigger on PR merge instead of approval
.github/scripts/tests/process_muted_tests_after_merge.py New Python script to extract muted_ya.txt from merge commits and comment on PRs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

uses: actions/checkout@v4
with:
ref: main
ref: muted_ya_new_iteration
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The checkout ref has been changed from 'main' to 'muted_ya_new_iteration', which appears to be a temporary development branch. This should likely be reverted to 'main' before merging to production.

Suggested change
ref: muted_ya_new_iteration
ref: main

Copilot uses AI. Check for mistakes.
Comment on lines 95 to 96
- name: Update YDB for muted tests
uses: ./.github/workflows/reusable/update_ydb_for_muted_tests.yml
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attempting to use a reusable workflow as a step within a job will fail. Reusable workflows must be called at the job level using the 'uses' keyword, not as a step. This needs to be restructured so the reusable workflow is called as a separate job, and subsequent steps that depend on it should be in a separate job with 'needs' dependency.

Copilot uses AI. Check for mistakes.
python3 .github/scripts/tests/create_new_muted_ya.py create_issues \
--file_path=muted_ya.txt \
--branch=${{ steps.get_file.outputs.base_branch }}
# Скрипт создает created_issues.txt и сохраняет путь в GITHUB_OUTPUT
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is in Russian. Consider translating to English for consistency with the rest of the codebase: 'Script creates created_issues.txt and saves path in GITHUB_OUTPUT'.

Suggested change
# Скрипт создает created_issues.txt и сохраняет путь в GITHUB_OUTPUT
# Script creates created_issues.txt and saves path in GITHUB_OUTPUT

Copilot uses AI. Check for mistakes.
id: get_file
run: |
python3 .github/scripts/tests/process_muted_tests_after_merge.py get-muted-file \
--merge_commit_sha="${{ github.event.pull_request.merge_commit_sha }}" \
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the workflow is triggered via 'workflow_dispatch', 'github.event.pull_request.merge_commit_sha' will be null/undefined, which could cause the script to fail or behave unexpectedly. Consider adding a conditional check or providing a fallback value for manual dispatch scenarios.

Suggested change
--merge_commit_sha="${{ github.event.pull_request.merge_commit_sha }}" \
--merge_commit_sha="${{ github.event.pull_request.merge_commit_sha || '' }}" \

Copilot uses AI. Check for mistakes.
Comment on lines 63 to 67
--base_branch="${{ github.event.pull_request.base.ref }}" \
--output="muted_ya.txt"
echo "muted_ya_file=muted_ya.txt" >> $GITHUB_OUTPUT
echo "base_branch=${{ github.event.pull_request.base.ref }}" >> $GITHUB_OUTPUT
echo "is_main=$([ \"${{ github.event.pull_request.base.ref }}\" == \"main\" ] && echo \"true\" || echo \"false\")" >> $GITHUB_OUTPUT
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the workflow is triggered via 'workflow_dispatch', 'github.event.pull_request.base.ref' will be null/undefined. While there's a fallback on line 27 ('|| 'main''), this step doesn't have the same fallback, which could cause the script to receive an empty base_branch value.

Suggested change
--base_branch="${{ github.event.pull_request.base.ref }}" \
--output="muted_ya.txt"
echo "muted_ya_file=muted_ya.txt" >> $GITHUB_OUTPUT
echo "base_branch=${{ github.event.pull_request.base.ref }}" >> $GITHUB_OUTPUT
echo "is_main=$([ \"${{ github.event.pull_request.base.ref }}\" == \"main\" ] && echo \"true\" || echo \"false\")" >> $GITHUB_OUTPUT
--base_branch="${{ github.event.pull_request.base.ref || 'main' }}" \
--output="muted_ya.txt"
echo "muted_ya_file=muted_ya.txt" >> $GITHUB_OUTPUT
echo "base_branch=${{ github.event.pull_request.base.ref || 'main' }}" >> $GITHUB_OUTPUT
echo "is_main=$([ \"${{ github.event.pull_request.base.ref || 'main' }}\" == \"main\" ] && echo \"true\" || echo \"false\")" >> $GITHUB_OUTPUT

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 13:18:50 UTC Pre-commit check linux-x86_64-release-asan for c780da5 has started.
2025-11-10 13:19:19 UTC Artifacts will be uploaded here
2025-11-10 13:21:25 UTC ya make is running...
🟢 2025-11-10 13:21:33 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-11-10 13:21:40 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 13:21:15 UTC Pre-commit check linux-x86_64-relwithdebinfo for c780da5 has started.
2025-11-10 13:21:32 UTC Artifacts will be uploaded here
2025-11-10 13:23:43 UTC ya make is running...
🟢 2025-11-10 13:23:50 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-11-10 13:23:56 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 13:34:18 UTC Pre-commit check linux-x86_64-release-asan for 528d1ec has started.
2025-11-10 13:34:36 UTC Artifacts will be uploaded here
2025-11-10 13:36:49 UTC ya make is running...
🟢 2025-11-10 13:36:56 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-11-10 13:37:03 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 13:36:36 UTC Pre-commit check linux-x86_64-relwithdebinfo for 528d1ec has started.
2025-11-10 13:36:54 UTC Artifacts will be uploaded here
2025-11-10 13:39:15 UTC ya make is running...
🟢 2025-11-10 13:39:23 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-11-10 13:39:30 UTC Build successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants