-
Notifications
You must be signed in to change notification settings - Fork 734
Enable tag event and nightly builds #19452
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
Conversation
|
⚪ Test history | Ya make output | Test bloat
🟢 |
|
⚪ Test history | Ya make output | Test bloat
🟢 |
|
🟢 |
1 similar comment
|
🟢 |
.github/workflows/nightly_build.yml
Outdated
|
|
||
| push: | ||
| tags: | ||
| - '[0-9][0-9].[0-9].[0-9]**' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это не совсем правильно, у нас могут быть и другие теги: например для analytics
Предлагаю все что с цифры -- считать тегом для сборки, а что уж там дальше -- неважно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделал
.github/workflows/nightly_build.yml
Outdated
| run: | | ||
| set -x | ||
| s3cmd sync --follow-symlinks --acl-public --no-progress --stats --no-check-md5 "ydb/apps/ydbd/ydbd" "s3://ydb-builds/${{ matrix.branch }}/${{ matrix.build_preset }}/ydbd" -d | ||
| s3cmd sync --follow-symlinks --acl-public --no-progress --stats --no-check-md5 "ydb/apps/ydbd/ydbd" "s3://ydb-builds/$(echo -n "${{ matrix.branch }}" | tr -c '[:alnum:]-' '-')/${{ matrix.build_preset }}/ydbd" -d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А зачем тут заменять на дефисы? Мне кажется это неправильно и будет конфьюзить людей. Не лучше ли называть ровно так же, как называется тег?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Казалось, что в s3 не разрешены точки в названиях, правлю
.github/actions/test_ya/action.yml
Outdated
| echo "BRANCH_NAME is set to $BRANCH_NAME" | ||
| TESTMO_BRANCH_TAG="$BRANCH_NAME" | ||
| TESTMO_BRANCH_TAG=${BRANCH_NAME//[^a-zA-Z0-9-]/-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А можешь, плз, проверить, что после этой правки ПР в ветку не ломаются?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Например, что в тестмо по прежнему все льется корректно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Должно провериться вот тут #19453
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds tag-based triggers and improves name sanitization for nightly builds, while refining cache and debug configurations
- Introduce
push.tagsevent and adjust branch-selection logic to skip default branches on tag pushes - Update cache steps to use
-DDEBUGINFO_LINES_ONLYand remove unused tokens - Sanitize branch names in S3 paths and TESTMO variables by stripping invalid characters
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/nightly_build.yml | Added tag trigger, tweaked branch logic, updated cache args, and sanitized S3 upload path |
| .github/actions/test_ya/action.yml | Sanitized TESTMO_BRANCH_TAG by replacing non-alphanumeric/- chars |
Comments suppressed due to low confidence (1)
.github/workflows/nightly_build.yml:14
- GitHub push event tag filters use glob patterns rather than regex. The pattern '[0-9][0-9].[0-9].[0-9]**' may not match as intended; consider a glob like '..' or 'v..' to reliably capture version tags.
- - '[0-9][0-9].[0-9].[0-9]**'
.github/workflows/nightly_build.yml
Outdated
| - id: set-branches | ||
| run: | | ||
| if [[ "${{ github.event_name }}" == "schedule" || "${{ inputs.use_default_branches }}" == "true" ]]; then | ||
| if [[ "${{ github.event_name }}" == "schedule" || "${{ inputs.use_default_branches }}" == "true" && "${{ github.ref_type }}" != "tag" ]]; then |
Copilot
AI
Jun 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The combination of || and && without grouping can lead to unexpected logic due to operator precedence. Wrap the second part in parentheses, e.g.: if [[ "${{ github.event_name }}" == "schedule" || ("${{ inputs.use_default_branches }}" == "true" && "${{ github.ref_type }}" != "tag") ]]; then.
| if [[ "${{ github.event_name }}" == "schedule" || "${{ inputs.use_default_branches }}" == "true" && "${{ github.ref_type }}" != "tag" ]]; then | |
| if [[ "${{ github.event_name }}" == "schedule" || ("${{ inputs.use_default_branches }}" == "true" && "${{ github.ref_type }}" != "tag") ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил
.github/workflows/nightly_build.yml
Outdated
| put_build_results_to_cache: false | ||
| secs: ${{ format('{{"TESTMO_TOKEN2":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}', | ||
| secrets.TESTMO_TOKEN2, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }} | ||
| additional_ya_make_args: -DDEBUGINFO_LINES_ONLY # we don't need full symbols in CI checks |
Copilot
AI
Jun 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An unquoted string beginning with '-' can be interpreted as a YAML list item. Quote -DDEBUGINFO_LINES_ONLY (e.g., "-DDEBUGINFO_LINES_ONLY") to ensure it’s treated as a single string argument.
| additional_ya_make_args: -DDEBUGINFO_LINES_ONLY # we don't need full symbols in CI checks | |
| additional_ya_make_args: "-DDEBUGINFO_LINES_ONLY" # we don't need full symbols in CI checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил
.github/actions/test_ya/action.yml
Outdated
| echo "BRANCH_NAME is set to $BRANCH_NAME" | ||
| TESTMO_BRANCH_TAG="$BRANCH_NAME" | ||
| TESTMO_BRANCH_TAG=${BRANCH_NAME//[^a-zA-Z0-9-]/-} |
Copilot
AI
Jun 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter expansion results should be quoted to handle empty or whitespace-containing names safely. Use TESTMO_BRANCH_TAG="${BRANCH_NAME//[^a-zA-Z0-9-]/-}".
| TESTMO_BRANCH_TAG=${BRANCH_NAME//[^a-zA-Z0-9-]/-} | |
| TESTMO_BRANCH_TAG="${BRANCH_NAME//[^a-zA-Z0-9-]/-}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил
|
⚪ Test history | Ya make output | Test bloat
🟢 |
|
⚪ Test history | Ya make output | Test bloat
🟢 |
Changelog category
Description for reviewers
Nightly build is now capable of building and publishing by tags. Added trigger on tag push event
Resolves #19413 #19414