Skip to content
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

Buildkite use pat #2919

Merged
merged 7 commits into from
Feb 6, 2024
Merged

Buildkite use pat #2919

merged 7 commits into from
Feb 6, 2024

Conversation

nkammah
Copy link
Contributor

@nkammah nkammah commented Feb 2, 2024

This PR re-enables the use of pat (personal access token) to perform various GitHub operations (preview-cleaner, setting commit status). This was rolled out a first time a week ago, then reverted due to un-expected issues (explained here and fixed since then).

The testing done on this PR shows the problem to be addressed for both the docs-build-pr and preview-cleaner.

Copy link

github-actions bot commented Feb 2, 2024

A documentation preview will be available soon.

Help us out by validating the Buildkite preview and reporting issues here.
Please also be sure to double check all images to ensure they are correct in the preview.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@nkammah nkammah marked this pull request as ready for review February 2, 2024 18:35
@nkammah nkammah requested a review from a team as a code owner February 2, 2024 18:35
@@ -96,6 +96,7 @@ function Cleaner(token, repo, cache_dir, tmp_dir) {
}

const is_pr_closed = function (pr) {
console.info(`Checking status of https://github.com/elastic/${pr.repo}/pull/${pr.number}`);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is extra-logging that makes it easier to understand which PR is creating issues

Copy link
Member

@bmorelli25 bmorelli25 left a comment

Choose a reason for hiding this comment

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

I don't understand it, but I'm ready to test it out. Thanks for the extra logging info!

@nkammah nkammah merged commit 84cd13f into master Feb 6, 2024
5 checks passed
@nkammah nkammah deleted the buildkite-use-pat branch February 6, 2024 09:00
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.

2 participants