Skip to content

Commit

Permalink
Merge branch 'main' into promote-job-beta-experimental-opt-in-2406252…
Browse files Browse the repository at this point in the history
…034000
  • Loading branch information
powerivq authored Jul 9, 2024
2 parents 2edd976 + 393ec2c commit 6203f82
Show file tree
Hide file tree
Showing 20 changed files with 728 additions and 313 deletions.
13 changes: 3 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,11 @@
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/stylistic-type-checked",
"prettier"
],
"rules": {
"@typescript-eslint/restrict-template-expressions": [
2,
{
"allowBoolean": true,
"allowNullish": true,
"allowNumber": true
}
]
"@typescript-eslint/no-unused-vars": "error",
"no-unused-vars": "off"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/post-promote-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Get tasks
id: get-tasks
run: npx ts-node ./scripts/post-promote-tasks-job.ts --pull_number="${{ github.event.pull_request.number }}" --override_pull_number="${{ github.event.inputs.pull_number }}"
run: npx tsx ./scripts/post-promote-tasks-job.ts --pull_number="${{ github.event.pull_request.number }}" --override_pull_number="${{ github.event.inputs.pull_number }}"

release-calendar:
needs: setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/promote-beta-experimental-opt-in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Get fixes
id: get-fixes
run: npx ts-node ./scripts/get-missing-cherry-picks-job.ts --amp_version="${{ github.event.inputs.amp-version }}"
run: npx tsx ./scripts/get-missing-cherry-picks-job.ts --amp_version="${{ github.event.inputs.amp-version }}"

cherry-pick-if-missing:
needs: get-missing-cherry-picks
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/promote-reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ jobs:
- name: Check for a release freeze
id: check-freeze
if: ${{ inputs.check-freeze }}
run: npx ts-node scripts/check-release-freeze.ts
run: npx tsx scripts/check-release-freeze.ts

- name: Check for day-of-month range
id: day-of-month-range
if: ${{ inputs.day-of-month-range }}
run: npx ts-node scripts/check-day-of-month-range.ts --day_of_month_range=${{ inputs.day-of-month-range }}
run: npx tsx scripts/check-day-of-month-range.ts --day_of_month_range=${{ inputs.day-of-month-range }}

- name: ⭐ Promote ${{ inputs.channel-name }} Channel ⭐
if: ${{ (!inputs.day-of-month-range || steps.day-of-month-range.outputs.in-range == 'true') && (!inputs.check-freeze || steps.check-freeze.outputs.freeze == 'false') }}
run: npx ts-node scripts/${{ inputs.ts-file }} --amp_version=${{ inputs.amp-version }} --auto_merge=${{ inputs.auto-merge }}
run: npx tsx scripts/${{ inputs.ts-file }} --amp_version=${{ inputs.amp-version }} --auto_merge=${{ inputs.auto-merge }}
env:
ACCESS_TOKEN: ${{ secrets.access-token }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
run: npm ci

- name: Fail if QA did not approve
run: npx ts-node ./scripts/check-qa-approval.ts --pull_number=${{ github.event.pull_request.number }}
run: npx tsx ./scripts/check-qa-approval.ts --pull_number=${{ github.event.pull_request.number }}
env:
GITHUB_TOKEN: ${{ secrets.READ_ORG }}
4 changes: 4 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://json.schemastore.org/mocharc.json",
"require": "tsx"
}
6 changes: 3 additions & 3 deletions configs/schemas/versions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {JSONSchemaType} from 'ajv';

export type Versions = {
export interface Versions {
'beta-opt-in': string;
'beta-traffic': string;
control: string;
Expand All @@ -13,9 +13,9 @@ export type Versions = {
nightly: string;
'nightly-control': string;
stable: string;
};
}

export const Prefixes: {[channel: string]: string} = {
export const Prefixes: Record<string, string> = {
'beta-opt-in': '03',
'beta-traffic': '03',
control: '02',
Expand Down
2 changes: 1 addition & 1 deletion configs/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

"lts": "012405231944000",

"nightly": "042406252034000",
"nightly": "042407081945000",

"nightly-control": "052406131415000",

Expand Down
Loading

0 comments on commit 6203f82

Please sign in to comment.