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

Update ubuntu os version #1076

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e_scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: github.event.schedule == '0 4 * * *'
uses: ./.github/workflows/~reusable_e2e_by_OS.yaml
with:
OS: ubuntu-latest
OS: ubuntu-22.04
BRANCH: main
NPM_IGNORE_PREFIX: ${{ vars.NPM_IGNORE_PREFIX }}
PACKAGE_VERSION: latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
get-version:
if: ${{ (github.event.label.name == vars.E2E_LABEL) || (github.event.label.name == vars.PUBLISH_AND_E2E_LABEL) }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
branch: ${{ steps.extractBranch.outputs.branch }}
version: ${{ steps.alphaVersion.outputs.version }}
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
remove-label-on-failure:
needs: e2e-test
if: always()
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions-ecosystem/action-remove-labels@v1
if: needs.e2e-test.result != 'success'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/skip_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
node20:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-22.04, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- run: echo "e2e not required. Passing status check"
2 changes: 1 addition & 1 deletion .github/workflows/skip_pr_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: echo "Test execution not required. Passing status check"
release-alpha-version:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/skip_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ on:

jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: echo "Skip Publish, Passing status check"
2 changes: 1 addition & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:

jobs:
tag:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: wait-job
run: sleep 10s
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~reusable_e2e_all_OS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ ubuntu-22.04, windows-latest, macos-latest ]
uses: ./.github/workflows/~reusable_e2e_by_OS.yaml
with:
OS: ${{ matrix.os }}
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/~reusable_e2e_by_OS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
with:
node-version: '20'
- name: Install project dependencies (Linux)
if: ${{ inputs.OS == 'ubuntu-latest' }}
if: ${{ inputs.OS == 'ubuntu-22.04' }}
run: |
echo "Starting npm ci with a 10-minute timeout"
for i in 1 2 3; do # Retry logic, retry 3 times
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
run: |
npm run build
- name: Run e2e tests - JS (Linux)
if: ${{ inputs.OS == 'ubuntu-latest' }}
if: ${{ inputs.OS == 'ubuntu-22.04' }}
env:
TS: 0
run: |
Expand All @@ -150,8 +150,11 @@ jobs:
env:
TS: 0
run: |
echo "Starting e2e tests with a 90-minute timeout"
cd packages/flex-plugin-e2e-tests
npm run start
for i in 1 2; do # Retry logic, retry 3 times
gtimeout 90m npm run start && break || echo "E2E tests timed out, retrying ($i/3)..."
done
- name: Run e2e tests - JS (Windows)
if: ${{ inputs.OS == 'windows-latest' }}
env:
Expand All @@ -165,7 +168,7 @@ jobs:
echo "os is: ${{ inputs.OS }} ${{ runner.os }}"
taskkill /f /im node.exe
- name: Run e2e tests - TS (Linux)
if: ${{ inputs.OS == 'ubuntu-latest' }}
if: ${{ inputs.OS == 'ubuntu-22.04' }}
env:
TS: 1
run: |
Expand All @@ -176,8 +179,11 @@ jobs:
env:
TS: 1
run: |
cd packages/flex-plugin-e2e-tests
npm run start
echo "Starting e2e tests with a 90-minute timeout"
cd packages/flex-plugin-e2e-tests
for i in 1 2; do # Retry logic, retry 3 times
gtimeout 90m npm run start && break || echo "E2E tests timed out, retrying ($i/3)..."
done
- name: Run e2e tests - TS (Windows)
if: ${{ inputs.OS == 'windows-latest' }}
env:
Expand All @@ -193,7 +199,7 @@ jobs:
path: packages/flex-plugin-e2e-tests/screenshots

notify-failure:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: node20
if: ${{ always() && inputs.SEND_NOTIFICATION }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~reusable_public_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:

jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
environment: ${{ inputs.ENVIRONMENT }}
steps:
- uses: tibdex/github-app-token@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~reusable_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:

jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
environment: ${{ inputs.ENVIRONMENT }}
steps:
- uses: actions/checkout@v4
Expand Down
Loading