Skip to content

Conversation

naspirato
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

Copy link
Contributor

@Copilot 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 fixes the init monitor by improving the test analytics workflow. The changes focus on better test tracking by linking tests to their actual execution through run_timestamp_last from the test_runs_column table, adding proper build type filtering, and reorganizing workflow tasks for efficiency.

Key changes:

  • Modified get_all_tests() to join with test_runs_column for accurate test execution tracking
  • Added build_type parameter throughout the workflow chain
  • Moved collect-testowners job to run before update-muted-tests in the workflow
  • Added extensive logging for debugging

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/update_muted_ya.yml Added new collect-testowners job and updated dependencies; added build_type parameter to muted tests upload
.github/workflows/collect_analytics_fast.yml Moved GitHub issues export step and renamed stability data mart step
.github/workflows/collect_analytics.yml Reorganized test collection workflow, moved testowners collection, and updated build types list
.github/scripts/tests/get_muted_tests.py Added build_type parameter, extensive logging, and modified query to join with test_runs_column
.github/scripts/tests/create_new_muted_ya.py Changed data source from aggregated_for_mute to all_data for muted_ya file creation
.github/scripts/analytics/table_dependencies_graph.md Added comprehensive documentation of table dependencies
Comments suppressed due to low confidence (1)

.github/scripts/tests/get_muted_tests.py:1

  • The build types list has been changed from 'relwithdebinfo release-asan release-msan release-tsan' to 'release-asan release-msan release-tsan', removing 'relwithdebinfo'. This inconsistency with update_muted_ya.yml (which uses 'relwithdebinfo') could lead to different test coverage between workflows. Consider documenting why different build types are used in different workflows or unifying them if they should be consistent.
#!/usr/bin/env python3

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

# 4. muted_ya (все замьюченные сейчас)
all_muted_ya, all_muted_ya_debug = create_file_set(
aggregated_for_mute, lambda test: mute_check(test.get('suite_folder'), test.get('test_name')) if mute_check else True, use_wildcards=True, resolution='muted_ya'
all_data, lambda test: mute_check(test.get('suite_folder'), test.get('test_name')) if mute_check else True, use_wildcards=True, resolution='muted_ya'
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

Changing from aggregated_for_mute to all_data may include tests that shouldn't be considered for muting. The aggregated_for_mute variable likely contains filtered/processed data specifically for mute decisions, while all_data might include all tests regardless of their relevance. Verify that all_data contains the appropriate subset of tests for mute file generation.

Suggested change
all_data, lambda test: mute_check(test.get('suite_folder'), test.get('test_name')) if mute_check else True, use_wildcards=True, resolution='muted_ya'
aggregated_for_mute, lambda test: mute_check(test.get('suite_folder'), test.get('test_name')) if mute_check else True, use_wildcards=True, resolution='muted_ya'

Copilot uses AI. Check for mistakes.

Copy link

github-actions bot commented Oct 16, 2025

🟢 2025-10-16 16:56:07 UTC The validation of the Pull Request description is successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 11:40:10 UTC Pre-commit check linux-x86_64-release-asan for 796b4bc has started.
2025-10-16 11:40:38 UTC Artifacts will be uploaded here
2025-10-16 11:43:59 UTC ya make is running...
🟢 2025-10-16 11:44:05 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 11:44:07 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 11:41:14 UTC Pre-commit check linux-x86_64-relwithdebinfo for 796b4bc has started.
2025-10-16 11:41:27 UTC Artifacts will be uploaded here
2025-10-16 11:43:59 UTC ya make is running...
🟢 2025-10-16 11:44:05 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 11:44:07 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 14:35:11 UTC Pre-commit check linux-x86_64-relwithdebinfo for 10f9d1d has started.
2025-10-16 14:35:25 UTC Artifacts will be uploaded here
2025-10-16 14:37:57 UTC ya make is running...
🟢 2025-10-16 14:38:03 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 14:38:06 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 14:35:47 UTC Pre-commit check linux-x86_64-release-asan for 10f9d1d has started.
2025-10-16 14:36:01 UTC Artifacts will be uploaded here
2025-10-16 14:38:40 UTC ya make is running...
🟢 2025-10-16 14:38:45 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 14:38:48 UTC Build successful.

@naspirato naspirato requested a review from Copilot October 16, 2025 15:00
Copy link
Contributor

@Copilot 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

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


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

'--branch', required=True, default='main', help='branch for getting all tests'
)
upload_muted_tests_parser.add_argument(
'--build_type', required=True, help='build type for filtering tests'
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

The --build_type argument is marked as required=True but the upload_muted_tests mode in the old code path didn't require this parameter. This could break existing callers that don't provide it.

Suggested change
'--build_type', required=True, help='build type for filtering tests'
'--build_type', help='build type for filtering tests'

Copilot uses AI. Check for mistakes.

run: python3 .github/scripts/analytics/upload_testowners.py
- name: Set build types
id: set-build-types
run: |
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

The build types list has changed from relwithdebinfo release-asan release-msan release-tsan to release-asan release-msan release-tsan, removing relwithdebinfo. This is a significant behavior change that should be documented in the PR description or changelog.

Suggested change
run: |
run: |
# NOTE: The build types list has changed from 'relwithdebinfo release-asan release-msan release-tsan'
# to 'release-asan release-msan release-tsan', removing 'relwithdebinfo'.
# This is a significant behavior change. Please see PR description or changelog for details.

Copilot uses AI. Check for mistakes.

'--branch', required=True, default='main', help='branch for getting all tests'
)
upload_muted_tests_parser.add_argument(
'--build_type', required=True, help='build type for filtering tests'
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

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

Making --build_type required for upload_muted_tests mode breaks backward compatibility. Consider making it optional with a sensible default or updating all existing callers first.

Suggested change
'--build_type', required=True, help='build type for filtering tests'
'--build_type', default='release', help='build type for filtering tests (default: release)'

Copilot uses AI. Check for mistakes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Не совсем понимаю как читать таблицу

"""

print(f'📝 Executing SQL query:')
print(f'```sql')
Copy link
Collaborator

Choose a reason for hiding this comment

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

нам не нужен .md синтаксис в стдаут

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 15:42:28 UTC Pre-commit check linux-x86_64-relwithdebinfo for 263cb96 has started.
2025-10-16 15:42:41 UTC Artifacts will be uploaded here
2025-10-16 15:45:18 UTC ya make is running...
🟢 2025-10-16 15:45:24 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 15:45:27 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 15:42:43 UTC Pre-commit check linux-x86_64-release-asan for 263cb96 has started.
2025-10-16 15:42:57 UTC Artifacts will be uploaded here
2025-10-16 15:45:36 UTC ya make is running...
🟢 2025-10-16 15:45:42 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 15:45:45 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 15:48:37 UTC Pre-commit check linux-x86_64-relwithdebinfo for 9a6ac2f has started.
2025-10-16 15:49:08 UTC Artifacts will be uploaded here
2025-10-16 15:52:31 UTC ya make is running...
🟢 2025-10-16 15:52:37 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 15:52:40 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 15:50:12 UTC Pre-commit check linux-x86_64-release-asan for 9a6ac2f has started.
2025-10-16 15:50:26 UTC Artifacts will be uploaded here
2025-10-16 15:53:02 UTC ya make is running...
🟢 2025-10-16 15:53:08 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 15:53:11 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:03:19 UTC Pre-commit check linux-x86_64-relwithdebinfo for b473ac7 has started.
2025-10-16 16:04:16 UTC Artifacts will be uploaded here
2025-10-16 16:05:41 UTC Check cancelled

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:03:27 UTC Pre-commit check linux-x86_64-release-asan for b473ac7 has started.
2025-10-16 16:03:47 UTC Artifacts will be uploaded here
2025-10-16 16:05:41 UTC Check cancelled

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:06:07 UTC Pre-commit check linux-x86_64-release-asan for 53f9a57 has started.
2025-10-16 16:06:11 UTC Artifacts will be uploaded here
2025-10-16 16:08:46 UTC ya make is running...
🟢 2025-10-16 16:08:52 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 16:08:55 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:06:07 UTC Pre-commit check linux-x86_64-relwithdebinfo for 53f9a57 has started.
2025-10-16 16:06:11 UTC Artifacts will be uploaded here
2025-10-16 16:08:50 UTC ya make is running...
🟢 2025-10-16 16:08:56 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 16:08:59 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:12:25 UTC Pre-commit check linux-x86_64-relwithdebinfo for f769686 has started.
2025-10-16 16:12:29 UTC Artifacts will be uploaded here
2025-10-16 16:15:06 UTC ya make is running...
🟢 2025-10-16 16:15:12 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 16:15:15 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:13:28 UTC Pre-commit check linux-x86_64-release-asan for f769686 has started.
2025-10-16 16:13:32 UTC Artifacts will be uploaded here
2025-10-16 16:16:14 UTC ya make is running...
🟢 2025-10-16 16:16:20 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 16:16:23 UTC Build successful.

@naspirato naspirato changed the title Fix init monitor Analytics:Fix test monitor missig data fir stable Oct 16, 2025
@naspirato naspirato marked this pull request as ready for review October 16, 2025 16:53
@naspirato naspirato enabled auto-merge (squash) October 16, 2025 16:53
Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:54:06 UTC Pre-commit check linux-x86_64-relwithdebinfo for 4762665 has started.
2025-10-16 16:54:19 UTC Artifacts will be uploaded here
2025-10-16 16:56:55 UTC ya make is running...
🟢 2025-10-16 16:57:00 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 16:57:03 UTC Build successful.

Copy link

github-actions bot commented Oct 16, 2025

2025-10-16 16:55:55 UTC Pre-commit check linux-x86_64-release-asan for 4762665 has started.
2025-10-16 16:55:58 UTC Artifacts will be uploaded here
2025-10-16 16:58:27 UTC ya make is running...
🟢 2025-10-16 16:58:33 UTC Tests successful.

Ya make output | Test bloat

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

🟢 2025-10-16 16:58:36 UTC Build successful.

@naspirato naspirato merged commit 20f33d5 into ydb-platform:main Oct 16, 2025
14 checks passed
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