1
0
mirror of synced 2026-01-03 06:04:16 -05:00
Commit Graph

571 Commits

Author SHA1 Message Date
Ramya Parimi
e155947dd0 Update os-ready-for-review.yml (#21867) 2021-10-04 18:46:55 +00:00
James M. Greene
4ff2354ada Approve repo-sync and translation PRs with docubot (#21876) 2021-10-04 17:37:07 +00:00
James M. Greene
43fff33db8 Destructure correctly from Actions workflow run API response (#21872)
* Get PR metadata from the correct object strucure

* Also output the head_branch and head_label just in case
2021-10-04 10:59:18 -05:00
James M. Greene
bcc94873d2 Fixes to support staging deployments of PRs from forked repos (#21865)
* Add basic debugging jobs to all workflows related to staging deployment

* Totally rewrite the staging deployment to support forked repos... again...
2021-10-04 10:28:13 -05:00
Ramya Parimi
bc1158f1fc Update triage automation to check doc team member (#21856)
* to check if team members

* check for  doc team member

* remove duplicate check for team members

* delete/readd step

Co-authored-by: skedwards88 <skedwards88@github.com>
2021-10-01 21:22:35 +00:00
James M. Greene
a9e2bf0927 Dump debugging info for Staging Deploy workflow runs (#21860)
* Dump the github context for Staging Deploy workflow runs to help debug

* Output workflow provenance info

* Also output head_branch cleanly
2021-10-01 15:22:58 -05:00
James M. Greene
8d2e1ad577 Enable prod deployment via Actions (Take 2!) (#21852)
* Move concurrency control to top-level in prod deploy workflow

* Add 503 to the list of temporarily acceptable Heroku failure codes

* Add HEROKU_PRODUCTION_APP_NAME back into the prod deploy workflow
2021-10-01 13:37:46 -05:00
Grace Park
96ff67d756 Workflow to test docs.github.com links on github/github (#21601)
* run prettier

* removing files from test/integration

* update cron job to not start on the hour

* add github/github comment

* update comment

* updating to search by indices in the content rather than by line

* small updates and updating character max

* update name of script run

* updating to use api search code and get contents

* using api search code and get contents

* adding token check and .js

* remove blank line for title

* update issue body content

* update comment

* add support for GitHub.developer_help_url links
2021-10-01 17:23:58 +00:00
James M. Greene
92cae89506 Reduce repo-sync frequency from every 15 minutes to every 30 minutes (#21841) 2021-10-01 11:57:01 -05:00
Ramya Parimi
e12d988c76 Automate triaging to content review board on adding waiting for review label (#21825)
* os-ready-for-review

* include grapqhl issue

* populate size, feature, first-time contributor (#21810)

* turnaround -> 3 & 2

* Update .github/workflows/os-ready-for-review.yml

Co-authored-by: Sarah Edwards <skedwards88@github.com>

* Update .github/workflows/os-ready-for-review.yml

Co-authored-by: Sarah Edwards <skedwards88@github.com>

* Update .github/workflows/os-ready-for-review.yml

Co-authored-by: Sarah Edwards <skedwards88@github.com>

* Update .github/workflows/os-ready-for-review.yml

Co-authored-by: Sarah Edwards <skedwards88@github.com>

* Update .github/workflows/os-ready-for-review.yml

Co-authored-by: Sarah Edwards <skedwards88@github.com>

* prettier

Co-authored-by: skedwards88 <skedwards88@github.com>
2021-10-01 06:26:02 -05:00
Robert Sese
d74f60b937 Checkout in both internal and public repos (#21839) 2021-09-30 17:54:03 -05:00
James M. Greene
b9d3257689 Deploy staging with Git LFS enabled (#21824)
* Do an LFS checkout for the staging deployment

* Switch from rsync to mv for much faster performance (at the cost of destruction)
2021-09-30 14:00:32 -05:00
James M. Greene
a0fcbe6c27 Do an LFS checkout for the production deployment (#21823) 2021-09-30 11:24:05 -05:00
Ramya Parimi
991e954071 Merge branch 'main' into graphql-internal-move 2021-09-29 20:25:52 -05:00
Ramya Parimi
58d2f6f4e2 graphql update workflow 2021-09-29 20:21:56 -05:00
James M. Greene
7e954927e2 [DO NOT MERGE] Revert to no longer deploy to production via Actions (#21808)
* Update the production deployment workflow to target the main Heroku app

Without exposing our internal Heroku app name!

* Refactor the staging deployment script a bit to match more closely

* Use the HEROKU_PRODUCTION_APP_NAME Secret in the workflow

* Add a note about the newly required environment variable for production deployment into the local deploy script

* Add critical errors if the HEROKU_PRODUCTION_APP_NAME is missing

* Extract HEROKU_PRODUCTION_APP_NAME from process.env

* Revert the critical parts of PR #21807 to no longer deploy to prod via Actions

* Don't require HEROKU_PRODUCITON_APP_NAME
2021-09-29 15:29:53 -05:00
James M. Greene
90d030a41e Deploy to the primary production Heroku App via Actions (#21807)
* Update the production deployment workflow to target the main Heroku app

Without exposing our internal Heroku app name!

* Refactor the staging deployment script a bit to match more closely

* Use the HEROKU_PRODUCTION_APP_NAME Secret in the workflow

* Add a note about the newly required environment variable for production deployment into the local deploy script

* Add critical errors if the HEROKU_PRODUCTION_APP_NAME is missing

* Extract HEROKU_PRODUCTION_APP_NAME from process.env
2021-09-29 14:43:29 -05:00
Melanie Yarbrough
2a10e30adc New workflow to aid internal contributions in PRs (#21612)
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2021-09-29 13:09:26 -04:00
James M. Greene
12134aa84b Use staging app name module for content changes table generation (#21805)
* Use the 'script/deployment/create-staging-app-name' module when creating the content changes table comments

* Remove the shebang from the non-runnable script helper module
2021-09-29 09:00:19 -07:00
James M. Greene
a9bea255a3 Use more unique job names to work around Required Checks (#21794) 2021-09-28 15:23:41 -05:00
James M. Greene
deab27360c Announce if Heroku appears to be down (#21762) 2021-09-27 20:17:05 +00:00
James M. Greene
d7aaa98c97 Move early access content over granularly (#21754) 2021-09-27 13:14:50 -05:00
James M. Greene
a76f30e5f2 Move delay for Heroku Preboot to before marking deployment successful (#21736)
* Move delay for Heroku Preboot from post-deploy to pre-success

* Shorten arbitrary delay before first Fastly purge
2021-09-24 19:35:13 -05:00
James M. Greene
6e9e5ec855 Correctly drill down to 'jobs' array (#21732) 2021-09-24 15:51:04 -05:00
James M. Greene
94e6f59d4d Explicitly define permissions needed for prod deployment (#21728) 2021-09-24 14:30:56 -05:00
James M. Greene
64bacc763a Add workflow_dispatch support to the prod deployment workflow (#21727) 2021-09-24 14:12:28 -05:00
Grace Park
9c9d47f508 Prod deployment workflow (#21223)
* add production deployment

* updating existing build

* remove state

* remove PR_URL and switch to main branch

* break out into build, prepare, and deploy

* update to download-artifact

* update staging to prod

* Actions production deployment redux (#21238)

* Simplify production deployment into a single Actions job

* Force esm to install

* Switch flag ordering to match staging deploy

* Use 'npm install' for the second installation to avoid deleting the prodDeps

* Apply Heroku upload fixes

* Include `.npmrc` file in builds to omit `optionalDeps`

* Remove download-artifact action

Co-authored-by: Grace Park <gracepark@github.com>

* Script updates to prod deployment (#21247)

* updating script to use latest sha

* changing back workflowRunLog

* remove line

* update error wording

* remove comment - using commit sha

* need release.id

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* remove hydro

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update .github/workflows/prod-build-deploy-pr.yml

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* updating spacing

* add 404/429 responses while polling Heroku API for prod

* removing nested ifs

* adding SOURCE_BLOB_URL

* update for early access

* add install dotenv

* need to add persist-credentials

* Testing GET request

* update request

* Rename workflow file to remove '-pr'

We are now triggering on pushes to 'main' rather than PR merges

* Remove the unnecessary workflow step to create a failure Status

Because the production deploy is done via a single workflow rather than a 2-part workflow chain, this is thankfully unnecessary

* Install all of the npm dependencies

We'll need them!

* Add the '-z' flag to 'tar' to gzip the tarball

* Pass the Heroku upload URL via env vars for security

Prevents potential injection attacks

* Log the deployment ID and log URL as deploy step outputs

* Take notice of Heroku polling resulting in failure statuses

* Add a note to consider waiting for Heroku Preboot

* Add a script and workflow step to purge Fastly

* update response to get sha

* Switch to Octokit functions instead of 'request' method

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-09-24 16:09:08 +00:00
James M. Greene
93fe673f5f Verify build was not cancelled before reporting it as a failure (#21699) 2021-09-24 09:24:46 -05:00
James M. Greene
84d61c37ef Untar, append, and retar the deployment app archive (#21690) 2021-09-23 13:52:44 -05:00
Marcelo Jacobus
e4f7746d85 Fix broken crowdin sync action (#21624) 2021-09-23 08:50:47 -07:00
James M. Greene
bb4232c87a Allow env var to expand with double quotes (#21667) 2021-09-22 17:41:58 -05:00
James M. Greene
735b84a5c2 Checkout the whole default branch for the deployment preparation job (#21664)
* Checkout the whole default branch for the deployment preparation job
2021-09-22 21:29:48 +00:00
James M. Greene
e4c120dfd1 Checkout the top-level npm package manifests before configuring npm in the staging deployment workflow (#21661) 2021-09-22 15:27:30 -05:00
James M. Greene
2929e23008 Work around Actions inability to use env. in a job-level if (#21657) 2021-09-22 14:35:36 -05:00
Robert Sese
f6d85c6d64 Security: remove Docker PR build/deploy workflows (#21599)
* Remove Docker PR build/deploy workflows

* Remove supporting Docker deploy script
2021-09-17 23:17:17 +00:00
James M. Greene
b2c8af9d31 Secure early access staging deployment (#21450)
* Explicitly ensure the early access parent directories are created when cloning

* Use explicit --file flag with tar

* Remove security hole for Staging deployment by concatenating archives

* Fail the staging builds if *.js, .npmrc, or Procfile is changed in the open source repo

* docker build: extract user-code in separate directory

* Checkout PR base branch and install dependencies

* Remove one-off package installs

* Remove selective file checkout

* Don't persist git cloning credentials

It usually makes the clone of early access content fail in the later steps

* Update .github/workflows/staging-deploy-pr-docker.yml

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update .github/workflows/staging-deploy-pr-docker.yml

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Remove debugging step

* Best practice: Use environment variables to avoid potential injection attacks if the data was user-controlled

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Robert Sese <sese@github.com>
Co-authored-by: Robert Sese <robert.sese@gmail.com>
2021-09-17 22:41:13 +00:00
James M. Greene
6586056566 Only do a Staging Docker build if the branch name starts with 'docker-' (#21589) 2021-09-17 13:15:51 -05:00
James M. Greene
84f404acff Skip deploy runs that are not associated with an open PR (#21586)
'github.event.workflow_run.pull_requests' is empty if the PR that indirectly triggered it was closed before this workflow run began
2021-09-17 17:49:54 +00:00
Ramya Parimi
5edab536d2 Merge branch 'main' into ramyaparimi/close-on-invalid-label 2021-09-16 12:16:13 -05:00
James M. Greene
f1a432c31a Add debugging into the workflow_run for staging build failure notifications (#21560) 2021-09-16 10:49:37 -05:00
Ramya Parimi
a9e6e18e5a Update close-on-invalid-label.yaml 2021-09-16 06:22:07 -05:00
James M. Greene
f8dd139a38 Don't notify of failure on canceled builds (#21544)
* Only notify for staging build failures
* Only notify of docker build failures for branches starting with 'docker-'
2021-09-15 20:50:34 +00:00
James M. Greene
1c398b9016 Notify of staging build run failures from the deploy run (#21536)
* Notify of build run failures from the deploy run
2021-09-15 19:11:10 +00:00
Robert Sese
00e6831ffb Deploy workflows fixes (#21519)
* Use built-in Actions github
* Get pull number from github context
2021-09-15 16:09:34 +00:00
James M. Greene
7ae1eea3b5 Undeploy without Environment cleanup (#21530)
* Ensure we handle multiple pages of Deployments
* Do NOT delete the Environment during undeploy
* Do NOT deploy/undeploy PRs on lock/unlock events
2021-09-15 15:11:48 +00:00
Robert Sese
e6f1e4d866 Use built-in Actions github (#21516)
* Use built-in github

* Use built-in github
2021-09-14 15:57:11 -05:00
Robert Sese
af6d11544b Missing curly (#21514) 2021-09-14 14:45:15 -05:00
Mike Surowiec
5c930af422 update docubot pat naming (#21498) 2021-09-14 12:56:07 -04:00
Mike Surowiec
cb78de81f3 update DOCS_BOT -> DOCS_BOT_FR for consistent cross repo naming (#21485) 2021-09-14 15:51:50 +00:00
Ramya Parimi
88feefdc2f Update close-on-invalid-label.yaml 2021-09-14 08:41:24 -05:00