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

Suppress beta warning when operating in Pages' CI environment #934

Merged
merged 1 commit into from
May 9, 2022

Conversation

GregBrimble
Copy link
Member

@GregBrimble GregBrimble commented May 9, 2022

We've had a couple of people flagging this as weird to show up in our official prod build image logs. This PR suppresses those warnings for the wrangler build functions command that we run to generate their Functions Worker.

image

Fixes #855

@GregBrimble GregBrimble added pages Relating to Pages polish Small improvements to the experience labels May 9, 2022
@changeset-bot
Copy link

changeset-bot bot commented May 9, 2022

🦋 Changeset detected

Latest commit: 2fd2577

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2293683753/npm-package-wrangler-934

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/934/npm-package-wrangler-934

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2293683753/npm-package-wrangler-934 dev path/to/script.js

logger.log(pagesBetaWarning);
if (!isInPagesCI) {
// Beta message for `wrangler pages <commands>` usage
logger.log(pagesBetaWarning);
Copy link
Contributor

Choose a reason for hiding this comment

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

is this the only one to silence? I see 11 instances in the codebase, but just confirming they they won't be hit in CI.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is the only command that we run in CI. I figure if users are running other commands themselves in CI, we still want to warn them.

@GregBrimble GregBrimble merged commit 692ddc4 into main May 9, 2022
@GregBrimble GregBrimble deleted the suppress-warnings-in-pages-ci branch May 9, 2022 11:28
@github-actions github-actions bot mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pages Relating to Pages polish Small improvements to the experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable Pages beta warnings when CF_PAGES=1
3 participants