Skip to content

Split out the PR coverage commenting workflow so that it can run in the target (default) branch context.#3120

Merged
alecgrieser merged 3 commits into
FoundationDB:mainfrom
MMcM:pull-request-comments-two-phase
Feb 12, 2025
Merged

Split out the PR coverage commenting workflow so that it can run in the target (default) branch context.#3120
alecgrieser merged 3 commits into
FoundationDB:mainfrom
MMcM:pull-request-comments-two-phase

Conversation

@MMcM

@MMcM MMcM commented Feb 8, 2025

Copy link
Copy Markdown
Collaborator

Pull request tests run in the potentially unsafe context of the base, but can only produce artifacts.
A second workflow is triggered after that and runs in default branch context, so it can be given permission to add a comment to the PR.

Comment on lines +13 to +14
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Did this run in the PRB? Would we expect it to, or is that a sign that something is up?

@MMcM MMcM force-pushed the pull-request-comments-two-phase branch 5 times, most recently from d4f4067 to 761f225 Compare February 11, 2025 22:25
Comment thread .github/workflows/pull_request.yml
@MMcM MMcM force-pushed the pull-request-comments-two-phase branch from 761f225 to 049966c Compare February 12, 2025 15:11
@alecgrieser alecgrieser merged commit f1bbd57 into FoundationDB:main Feb 12, 2025
@MMcM MMcM deleted the pull-request-comments-two-phase branch February 12, 2025 16:21
@github-actions

Copy link
Copy Markdown
Overall Project 50.08%

There is no coverage information present for the Files changed

@ScottDugas ScottDugas added the build improvement Improvement to the build system label Feb 17, 2025
@ScottDugas ScottDugas changed the title Split out the PR coverage commenting workflow … Split out the PR coverage commenting workflow so that it can run in the target (default) branch context. Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build improvement Improvement to the build system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants