Skip to content

move PR comment to post stage so it runs even if the ci test fails#384

Merged
aptalca merged 1 commit intomonthlyfrom
monthly-test
Mar 20, 2026
Merged

move PR comment to post stage so it runs even if the ci test fails#384
aptalca merged 1 commit intomonthlyfrom
monthly-test

Conversation

@aptalca
Copy link
Copy Markdown
Member

@aptalca aptalca commented Mar 19, 2026

(Cleaned up and force pushed)

This PR is a follow up to #380, which didn't work because a failed ci test exits 1, which makes Jenkins skip the rest of the stages altogether.

This PR moves the PR comment script to the post section, which runs even if the build fails.

Tested both success and failure conditions and the comment seems to be added to PR successfully.

The only thing that is not quite ideal is, if ci test fails, a PR comment is added and it references the tags. However, those tags are not pushed to the registries. That may be a bit misleading and confusing. But I think it's still better than not adding a comment at all when the test fails, because that can cause a false positive (much bigger issue) when a successful commit is followed up by a failing commit in the same PR where the user may mistakenly think it succeeded.

@aptalca
Copy link
Copy Markdown
Member Author

aptalca commented Mar 19, 2026

Boo, did not work

@aptalca
Copy link
Copy Markdown
Member Author

aptalca commented Mar 19, 2026

ugh, with an exit 1 in any stage, jenkins entirely skips the rest of the stages
my original plan is a no go

I guess I could add the commenting script to the post section but it complicates things

@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-88d86592500bc08c7484d4e0b54a36203291a06b-pr-384/index.html
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-88d86592500bc08c7484d4e0b54a36203291a06b-pr-384/shellcheck-result.xml

Tag Passed
amd64-beac3828-pkg-beac3828-dev-88d86592500bc08c7484d4e0b54a36203291a06b-pr-384
arm64v8-beac3828-pkg-beac3828-dev-88d86592500bc08c7484d4e0b54a36203291a06b-pr-384

@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-97a531e5524777e0b90ec2d1a50fa11d3e20b4c3-pr-384/index.html
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-97a531e5524777e0b90ec2d1a50fa11d3e20b4c3-pr-384/shellcheck-result.xml

Tag Passed
amd64-beac3828-pkg-beac3828-dev-97a531e5524777e0b90ec2d1a50fa11d3e20b4c3-pr-384
arm64v8-beac3828-pkg-beac3828-dev-97a531e5524777e0b90ec2d1a50fa11d3e20b4c3-pr-384

@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-eb3e185701bdb711a1b2d7e0425257cce289ebdc-pr-384/index.html
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-eb3e185701bdb711a1b2d7e0425257cce289ebdc-pr-384/shellcheck-result.xml

Tag Passed
amd64-beac3828-pkg-beac3828-dev-eb3e185701bdb711a1b2d7e0425257cce289ebdc-pr-384
arm64v8-beac3828-pkg-beac3828-dev-eb3e185701bdb711a1b2d7e0425257cce289ebdc-pr-384

@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-186af30a4e941984a9e6aa45c496887a6b4c7858-pr-384/index.html
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/beac3828-pkg-beac3828-dev-186af30a4e941984a9e6aa45c496887a6b4c7858-pr-384/shellcheck-result.xml

Tag Passed
amd64-beac3828-pkg-beac3828-dev-186af30a4e941984a9e6aa45c496887a6b4c7858-pr-384
arm64v8-beac3828-pkg-beac3828-dev-186af30a4e941984a9e6aa45c496887a6b4c7858-pr-384

@aptalca aptalca changed the title intentionally fail init to test PR #380 move PR comment to post stage so it runs even if the ci test fails Mar 20, 2026
@aptalca aptalca requested a review from a team March 20, 2026 13:54
@LinuxServer-CI LinuxServer-CI moved this from PRs to PRs Ready For Team Review in Issue & PR Tracker Mar 20, 2026
@aptalca aptalca mentioned this pull request Mar 20, 2026
@github-project-automation github-project-automation Bot moved this from PRs Ready For Team Review to PRs Approved in Issue & PR Tracker Mar 20, 2026
@aptalca aptalca merged commit 1662eeb into monthly Mar 20, 2026
5 checks passed
@aptalca aptalca deleted the monthly-test branch March 20, 2026 15:24
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants