Skip to content

fix(workflows): scope merged PR versioning - #217

Closed
TorinAsakura wants to merge 1 commit into
masterfrom
fix/serenity-pr-versioning
Closed

TorinAsakura wants to merge 1 commit into
masterfrom
fix/serenity-pr-versioning

Conversation

@TorinAsakura

Copy link
Copy Markdown
Member

Таска

Как проверять

Основной сценарий

  1. Контекст: pull_request: closed workflow в atls/serenity после merge.
    Действие: запустить version job с event base SHA и merged GITHUB_SHA.
    Ожидаемый результат: workflow точечно получает merged head, проверяет base/head и ancestry, а Yarn выбирает non-private workspaces относительно exact PR base до version apply --all.

Дополнительный сценарий

  1. Контекст: PR не выбирает ни одного non-private workspace.
    Действие: выполнить тот же version job.
    Ожидаемый результат: deferred patch завершается наблюдаемым no-op; недоступный source, невалидная ancestry или ошибка Yarn завершают job до version mutation.

Пруфы

  • actionlint .github/workflows/version.yaml: проходит без ошибок.
  • Изолированный base-first shallow fixture: exact merged SHA получен точечным fetch без tags, submodules, fetch-depth и полной истории; merge-base равен exact base, commit до base отсутствует.
  • Serenity workspace fixture: Yarn выбрал 35 non-private workspaces; hash набора до и после version mutations совпал: 1e847e525010823e17206d0b488b7c764a34898f4d6534f2b3941bed1bc7d137.
  • Empty selection завершился успешным явным no-op; invalid source завершился ненулевым status до создания deferred version state.
  • git diff --check: проходит; diff ограничен .github/workflows/version.yaml.

@TorinAsakura TorinAsakura self-assigned this Aug 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40bd0bb729

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

exit 1
fi

if ! git checkout -B master "$GITHUB_SHA"; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Rebase version changes onto the latest master

When another PR or version commit reaches master after this event's GITHUB_SHA but before this job pushes, this command leaves the local master fixed at the older event commit. The later EndBug/add-and-commit step specifies only branch: master and no pull/rebase behavior, so its normal push is rejected as non-fast-forward and this PR's deferred version changes are never recorded (git push -h confirms force updates require the explicit --force option). Preserve the frozen workspace set, but apply its generated changes on top of the latest remote master before committing and pushing.

Useful? React with 👍 / 👎.

@TorinAsakura
TorinAsakura deleted the fix/serenity-pr-versioning branch August 26, 2026 22:30
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.

[OPS] Migrate atls/serenity PR versioning from Raijin changed-workspace route

1 participant