Skip to content

Update Ubuntu to latest build version #281

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

Merged
merged 3 commits into from
Apr 25, 2025
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
8 changes: 4 additions & 4 deletions .github/workflows/nightly_core_functionality_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ env:
jobs:

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
Expand Down Expand Up @@ -73,9 +73,9 @@ jobs:
core_functionality_test:
name: Core Functionality tests (${{ matrix.browser }})
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1 # run in series
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/production_smoke_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ env:
jobs:

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
Expand Down Expand Up @@ -69,9 +69,9 @@ jobs:
smoke_test:
name: Prod smoke tests (${{ matrix.browser }})
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1 # run in series
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/two_minute_drill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ env:
jobs:

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
Expand Down Expand Up @@ -82,9 +82,9 @@ jobs:
two_minute_drill_tests:
name: Two Minute Drill Tests (${{ github.event.inputs.browser }})
needs: [build]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1 # run in series
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/weekly_regression_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ env:
jobs:

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
# will be used since the scheduler does not have inputs.
set_variables:
name: Set the Domain, Service, and Browser for Regression Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
domain: ${{ github.event.inputs.domain || env.DEFAULT_DOMAIN }}
service: ${{ github.event.inputs.service || env.DEFAULT_SERVICE }}
Expand All @@ -130,7 +130,7 @@ jobs:
set_matrix:
name: Set Matrix of Browser Values
needs: [set_variables]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set_browser_2.outputs.matrix }}
steps:
Expand All @@ -147,9 +147,9 @@ jobs:
regression_test:
name: Regression tests (${{ matrix.browser }})
needs: [build, set_variables, set_matrix]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GHA_DISTRO: ubuntu-20.04
GHA_DISTRO: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1 # run in series
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ autopep8==1.3.3
requests>=2.20.0
urllib3<2
pythosf==0.0.9
environs==3.0.0
environs==14.1.1
faker==0.9.0
pre-commit==2.14.0
ipdb==0.13.13
Expand Down
3 changes: 1 addition & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from selenium import webdriver

import settings
from settings import DESIRED_CAP


def launch_driver(driver_name=settings.DRIVER, desired_capabilities=None):
Expand Down Expand Up @@ -94,7 +93,7 @@ def launch_driver(driver_name=settings.DRIVER, desired_capabilities=None):
chrome_options.add_argument(f'user-agent={custom_user_agent}')

# Make a copy of desired capabilities for Chrome
desired_capabilities = DESIRED_CAP.copy()
desired_capabilities = settings.DESIRED_CAP.copy()

# Attach Chrome options
desired_capabilities['goog:chromeOptions'] = {
Expand Down