Skip to content

build: add Commit Queue actions url to failure comment - #35206

Closed
lundibundi wants to merge 1 commit into
nodejs:masterfrom
lundibundi:add-url-to-cq
Closed

build: add Commit Queue actions url to failure comment#35206
lundibundi wants to merge 1 commit into
nodejs:masterfrom
lundibundi:add-url-to-cq

Conversation

@lundibundi

@lundibundilundibundi commented Sep 15, 2020

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Refs: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
Refs: #34770 (comment)

NOT TESTED YET. I guess I should land this to node-auto-test to verify that it works?

/cc @mmarchini

@nodejs-github-botnodejs-github-bot added the tools Issues and PRs related to the tools directory. label Sep 15, 2020
gitHubCurl "$(labelsUrl "$pr")" POST --data '{"labels": ["'"${COMMIT_QUEUE_FAILED_LABEL}"'"]}'

jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>" '{body: $content}' > output.json
cqurl="Commit Queue action: $GITHUB_SERVER_URL/${OWNER}/${REPOSITORY}/actions/runs/$GITHUB_RUN_ID"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This variable could be set outside the for loop, but there's no harm in having it here so 🤷‍♀️

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I agree, but since this is bash and everything is kind of 'messy' (imo) I'd prefer to have it right beside the place of usage if you don't mind.

@aduh95aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Oct 7, 2020
aduh95 pushed a commit to nodejs/node-auto-test that referenced this pull request Oct 9, 2020
PR-URL: nodejs/node#35206
Refs: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 9, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 9, 2020
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@mmarchini

Copy link
Copy Markdown
Contributor

Landed in 5509c1b

mmarchini pushed a commit that referenced this pull request Oct 9, 2020
PR-URL: #35206
Refs: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95

Copy link
Copy Markdown
Contributor

This seems to be broken: #35570 (comment)

@aduh95aduh95 mentioned this pull request Oct 11, 2020
3 tasks
BethGriggs pushed a commit that referenced this pull request Oct 14, 2020
PR-URL: #35206
Refs: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Trott pushed a commit to aduh95/node that referenced this pull request Oct 14, 2020
Refs: nodejs#35206
PR-URL: nodejs#35599
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Oct 14, 2020
Refs: #35206
PR-URL: #35599
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Oct 14, 2020
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
PR-URL: nodejs#35206
Refs: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
Refs: nodejs#35206
PR-URL: nodejs#35599
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@lundibundi@nodejs-github-bot@mmarchini@aduh95@richardlau