Skip to content

Commit

Permalink
Merge branch 'master' into feat/query-correction-switcharoo
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored Oct 8, 2024
2 parents 28089cc + 42645c8 commit 79db1e3
Show file tree
Hide file tree
Showing 2,192 changed files with 38,879 additions and 42,081 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"ARROWUP",
"Artemia",
"Artemiidae",
"atlcontinentantarctica",
"attachtocase",
"azerty",
"bazz",
"behaviour",
"bloup",
"bpsb",
"btoashim",
"CAPI",
"cfcomment",
"cfpage",
Expand Down
87 changes: 56 additions & 31 deletions .deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,106 +9,106 @@
"sequential": ["dev", "stg", "prd"]
},
"team_jenkins": "searchuibuilds",
"start_environment_automatically": false,
"start_environment_automatically": true,
"notifications": {
"slack_channels": ["#searchuibuilds"]
}
},
"ordered_phases": [
{
"id": "deploy-headless-patch-to-s3-version",
"id": "deploy-bueno-patch-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_PATCH_VERSION]",
"source": "packages/headless/dist/browser",
"directory": "proda/StaticCDN/bueno/v$[BUENO_PATCH_VERSION]",
"source": "packages/bueno/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-headless-minor-to-s3-version",
"id": "deploy-bueno-minor-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_MINOR_VERSION]",
"source": "packages/headless/dist/browser",
"directory": "proda/StaticCDN/bueno/v$[BUENO_MINOR_VERSION]",
"source": "packages/bueno/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-headless-major-to-s3-version",
"id": "deploy-bueno-major-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_MAJOR_VERSION]",
"source": "packages/headless/dist/browser",
"directory": "proda/StaticCDN/bueno/v$[BUENO_MAJOR_VERSION]",
"source": "packages/bueno/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-atomic-patch-to-s3-version",
"id": "deploy-headless-patch-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_PATCH_VERSION]",
"source": "packages/atomic/dist/atomic",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_PATCH_VERSION]",
"source": "packages/headless/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-atomic-minor-to-s3-version",
"id": "deploy-headless-minor-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MINOR_VERSION]",
"source": "packages/atomic/dist/atomic",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_MINOR_VERSION]",
"source": "packages/headless/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-atomic-major-to-s3-version",
"id": "deploy-headless-major-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MAJOR_VERSION]",
"source": "packages/atomic/dist/atomic",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_MAJOR_VERSION]",
"source": "packages/headless/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-atomic-headless-patch-to-s3-version",
"id": "deploy-atomic-patch-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_PATCH_VERSION]/headless",
"source": "packages/headless/dist/browser",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_PATCH_VERSION]",
"source": "packages/atomic/dist/atomic",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-atomic-headless-minor-to-s3-version",
"id": "deploy-atomic-minor-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MINOR_VERSION]/headless",
"source": "packages/headless/dist/browser",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MINOR_VERSION]",
"source": "packages/atomic/dist/atomic",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-atomic-headless-major-to-s3-version",
"id": "deploy-atomic-major-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MAJOR_VERSION]/headless",
"source": "packages/headless/dist/browser",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MAJOR_VERSION]",
"source": "packages/atomic/dist/atomic",
"parameters": {
"acl": "public-read"
}
Expand Down Expand Up @@ -191,16 +191,41 @@
}
}
},
{
"id": "invalidate-cloudfront-cache",
"terraform": {
"terragrunt_path": "",
"source": "infrastructure/terraform",
"auto_approve": true,
"auto_approve_in_production": true,
"run_strategy": "always"
}
},
{
"id": "smoke",
"github": {
"workflow_file": "smoke.yml",
"workflow_reference": "main",
"workflow_repository": "coveo-platform/ui-kit-cd",
"extra_parameters": {
"atomic-major": "$[ATOMIC_MAJOR_VERSION]",
"atomic-minor": "$[ATOMIC_MINOR_VERSION]",
"atomic-patch": "$[ATOMIC_PATCH_VERSION]"
}
}
},
{
"id": "production-release",
"team_jenkins": {
"github": {
"disabled": true,
"job_name": "ui-kit-production-release",
"workflow_file": "prod.yml",
"workflow_reference": "main",
"workflow_repository": "coveo-platform/ui-kit-cd",
"prd": {
"disabled": false
},
"extra_parameters": {
"GITHUB_RUN_ID": "$[GITHUB_RUN_ID]"
"run-id": "$[GITHUB_RUN_ID]"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'www',
'!.storybook',
'scripts/deploy/execute-deployment-pipeline.mjs',
'build',
],
env: {
jest: true,
Expand Down
8 changes: 7 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: 'Install, build & cache'
description: 'Installs dependencies, builds all packages, and saves the cache of Nx'
inputs:
cache-suffix:
description: 'Suffix to add to the cache key for different environments'
required: false
default: 'default'
runs:
using: composite
steps:
- uses: ./.github/actions/setup
with:
load-cache: 'false'
cache-suffix: ${{ inputs.cache-suffix }}
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: nx-cache
with:
path: .nx/cache
key: nx-${{ github.sha }}
key: nx-${{ github.sha }}-${{ inputs.cache-suffix }}
- if: steps.nx-cache.outputs.cache-hit != 'true'
run: npm run build
shell: bash
25 changes: 25 additions & 0 deletions .github/actions/cdn-checks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: cdn-checks
description: 'Runs CDN checks'
runs:
using: composite
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ./.github/actions/setup
with:
cache-suffix: 'cdn'
env:
DEPLOYMENT_ENVIRONMENT: CDN
- run: npm run build
env:
DEPLOYMENT_ENVIRONMENT: CDN
shell: bash
- uses: ./.github/actions/playwright-atomic
env:
DEPLOYMENT_ENVIRONMENT: CDN
with:
shardIndex: 1
shardTotal: 25
uploadArtifacts: false
- uses: ./.github/actions/playwright-headless-commerce-react
env:
DEPLOYMENT_ENVIRONMENT: CDN
2 changes: 1 addition & 1 deletion .github/actions/e2e-atomic-angular/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
wait-on-timeout: 600000
install: false
record: false
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: angular-screenshots
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/e2e-atomic-insight-panel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ runs:
with:
browser: chrome
command-prefix: 'npx -w @coveo/atomic cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
config-file: cypress-insight-panel.config.ts
start: npx nx run atomic:prod
wait-on: 'http://localhost:3333'
config-file: cypress-insight-panel.config.mjs
start: npm start -w @coveo/atomic
wait-on: 'http://localhost:3333/ping'
wait-on-timeout: 600000
install: false
record: false
2 changes: 1 addition & 1 deletion .github/actions/e2e-atomic-next/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: next-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-atomic-react/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
wait-on-timeout: 600000
install: false
record: false
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: react-screenshots
Expand Down
10 changes: 6 additions & 4 deletions .github/actions/e2e-atomic-screenshots/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ inputs:
runs:
using: composite
steps:
- run: npx cypress install
shell: bash
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx -w @coveo/atomic cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
config-file: cypress-screenshots.config.ts
start: npx nx run atomic:prod
wait-on: 'http://localhost:3333'
config-file: cypress-screenshots.config.mjs
start: npm start -w @coveo/atomic
wait-on: 'http://localhost:3333/ping'
wait-on-timeout: 600000
install: false
record: false
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: cancelled() || failure() || success()
with:
name: result-lists-screenshots
Expand Down
8 changes: 5 additions & 3 deletions .github/actions/e2e-atomic/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@ inputs:
runs:
using: composite
steps:
- run: npx cypress install
shell: bash
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx -w @coveo/atomic cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
spec: ${{ inputs.spec }}
start: npx nx run atomic:prod
wait-on: 'http://localhost:3333'
start: npm start -w @coveo/atomic
wait-on: 'http://localhost:3333/ping'
wait-on-timeout: 600000
install: false
record: false
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
SPLIT: ${{ inputs.SPLIT }}
SPLIT_INDEX: ${{ inputs.SPLIT_INDEX }}
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: atomic-e2e-screenshots-${{ inputs.spec }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-app-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: ssr-app-dev-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-app-prod/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: ssr-app-prd-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-pages-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: ssr-page-dev-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-pages-prod/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: ssr-pages-prd-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-iife/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
if: failure()
with:
name: iife-screenshots
Expand Down
Loading

0 comments on commit 79db1e3

Please sign in to comment.