Skip to content

Commit

Permalink
build: VRTs and Storybook for Bacon CI (#2312)
Browse files Browse the repository at this point in the history
OKTA-740029 build: squashed commit
fix: reduces Applitools concurrency per Ali Parsa
build: squashed commit
fix: adds Storybook publish script
fix: updates visual regression test script
build: git commit squash
fix: removed root version number that isn't used in Odyssey
fix: add releng.yml
fix: updates to 1.17.1
fix: rename releng.yml to .releng.yml
fix: added APPLITOOLS_SERVER_URL as an env var to visual-regression-test.sh
feat: updated Storybook publish steps
fix: update queue name of Visual Regression test
fix: adds vrt logging
fix: install Chromium before running VRTs
fix: trying snap install
fix: only installing Chromium with snap
fix: change to setup_service
fix: another attempt at a Chromium install
build: fix VRT using Monolith version
fix: removes unused Chrome check
build: adds chromedriver install
build: upgrades chrome version
build: use Artifactory chromedriver
build: updates CHROME_DRIVER variable name
build: git cherry-pick
fix: adds logging from Applitools
build: potential fix for Puppeteer failing on Amazon Linux 2023
build: second fix for Puppeteer to get Applitools working on Amazon Linux
build: running VRTs as limited user
  • Loading branch information
KevinGhadyani-Okta authored Aug 1, 2024
1 parent fea0793 commit e0ba8f6
Show file tree
Hide file tree
Showing 16 changed files with 297 additions and 386 deletions.
82 changes: 46 additions & 36 deletions .bacon.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
test_suites:
- name: "build"
- name: "Build"
abort_commit_on_failure: true
criteria: MERGE
prereq_test_suite_names:
- "lint"
- "test"
- "typecheck"
queue_name: ci-queue-productionJenga-AL2023
script_path: /root/okta/odyssey/scripts
sort_order: "1"
sort_order: "4"
steps:
- event: SOURCE
action: setup.sh
Expand All @@ -18,43 +14,30 @@ test_suites:
name: Build Packages
timeout: "20"

- name: publish
abort_commit_on_failure: true
script_path: /root/okta/odyssey/scripts
sort_order: "2"
timeout: "15"
script_name: publish
criteria: MERGE
prereq_test_suite_names:
- "build"
queue_name: ci-queue-productionJenga-AL2023

- name: "code coverage"
- name: "Code Coverage"
abort_commit_on_failure: true
criteria: OPTIONAL
# Playwright only works with certain distros of Linux
queue_name: ci-queue-prodJenga-Ubuntu20
script_path: /root/okta/odyssey/scripts
queue_name: ci-queue-prodJenga-Ubuntu20 # Playwright only works with certain distros of Linux
script_name: code-coverage
sort_order: "5"
script_path: /root/okta/odyssey/scripts
sort_order: "6"
timeout: "20"

- name: "interaction test"
- name: "Interaction Test"
abort_commit_on_failure: true
criteria: MERGE
# Playwright only works with certain distros of Linux
queue_name: ci-queue-prodJenga-Ubuntu20
queue_name: ci-queue-prodJenga-Ubuntu20 # Playwright only works with certain distros of Linux
script_path: /root/okta/odyssey/scripts
script_name: interaction-test
sort_order: "6"
sort_order: "5"
timeout: "20"

- name: "lint"
- name: "Lint"
abort_commit_on_failure: true
criteria: MERGE
queue_name: ci-queue-productionJenga-AL2023
script_path: /root/okta/odyssey/scripts
sort_order: "3"
sort_order: "1"
steps:
- event: SOURCE
action: setup.sh
Expand All @@ -64,21 +47,47 @@ test_suites:
name: Lint Code
timeout: "20"

- name: "test"
- name: "Publish Package"
abort_commit_on_failure: true
criteria: MERGE
queue_name: ci-queue-productionJenga-AL2023
script_name: publish-packages
script_path: /root/okta/odyssey/scripts
sort_order: "4"
script_name: unit-test
sort_order: "8"
timeout: "15"

- name: "Publish Storybook"
abort_commit_on_failure: true
criteria: MERGE
queue_name: ci-queue-productionJenga-AL2023
timeout: "20"
script_name: publish-storybook
script_path: /root/okta/odyssey/scripts
sort_order: "9"
timeout: "15"

- name: "Semgrep"
criteria: MERGE
queue_name: ci-queue-productionJenga-AL2023
script_name: semgrep
script_path: /root/okta/odyssey/scripts
sort_order: "7"
timeout: "10"

- name: "typecheck"
- name: "Test"
abort_commit_on_failure: true
criteria: MERGE
queue_name: ci-queue-productionJenga-AL2023
script_name: unit-test
script_path: /root/okta/odyssey/scripts
sort_order: "3"
timeout: "20"

- name: "Typecheck"
abort_commit_on_failure: true
criteria: MERGE
queue_name: ci-queue-productionJenga-AL2023
script_path: /root/okta/odyssey/scripts
sort_order: "2"
steps:
- event: SOURCE
action: setup.sh
Expand All @@ -88,10 +97,11 @@ test_suites:
name: Typecheck Code
timeout: "20"

- name: semgrep
- name: "Visual Regression Test"
abort_commit_on_failure: true
criteria: MERGE
queue_name: ci-queue-productionJenga-AL2023
script_name: semgrep
script_name: visual-regression-test
script_path: /root/okta/odyssey/scripts
sort_order: "7"
timeout: "10"
timeout: "20"
123 changes: 0 additions & 123 deletions .github/workflows/ci.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/stale.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/warm-cache.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/x-browser-vrt.yml

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"node-gyp@npm:latest": "^10.0.0",
"nyc@^15.1.0": "patch:nyc@npm:15.1.0#.yarn/patches/nyc-npm-15.1.0-f134b19668.patch",
"playwright-core@npm:1.34.2": "^1.43.1",
"puppeteer@npm:21.11.0": "^22.14.0",
"rimraf@npm:^2.5.4": "^4.2.0",
"rimraf@npm:^2.6.1": "^4.2.0",
"rimraf@npm:^2.6.3": "^4.2.0",
Expand All @@ -109,6 +108,5 @@
"ws@npm:8.13.0": "^8.17.1",
"ws@npm:8.16.0": "^8.17.1"
},
"version": "0.6.0",
"packageManager": "[email protected]"
}
Loading

0 comments on commit e0ba8f6

Please sign in to comment.