-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ci: separate VRT pipelines in GHA compliant pattern for future enablement #33534
base: master
Are you sure you want to change the base?
Conversation
📊 Bundle size report✅ No changes found |
Pull request demo site: URL |
36fc7a7
to
4768a9f
Compare
apps/vr-tests-react-components/src/stories/Button/Button.stories.tsx
Outdated
Show resolved
Hide resolved
- run: yarn playwright install --with-deps | ||
|
||
- name: Run VR tests (generate screenshots) | ||
run: yarn nx affected -t test-vr --nxBail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this saves significant resources
- before: install,playwright setup, scrernshot generation was done N times ( per affected projects )
- after: setup is invoked only once
echo "MAKE THIS WORK" | ||
npx vr-approval-cli@0.4.11 run-diff --screenshotsDirectory ./screenshots --buildType pr --clientType "FLUENTUI" --threshold '0.04' --cumThreshold '1' | ||
|
||
# 💡 NOTE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note 👇
actions: 'read' | ||
|
||
jobs: | ||
run_vr_diff: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is preparation of generated screenshots on forks and PR id, that will be used in vrt diffing tool once we have new version
@@ -84,58 +84,64 @@ runs: | |||
path: screenshots | |||
|
|||
# ========================================================== | |||
# STEPS BELOW WILL FAIL TO RUN ON GITHUB ACTIONS - see TODOs | |||
# STEPS BELOW WILL FAIL TO RUN ON GITHUB ACTIONS - see @TODOs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commenting steps that would not work with this composite action for future reference for us and VRT team
* @param {import('../../scripts/triage-bot/src/types.ts').GithubScriptsParams & {config:{projects:string[]}} } options | ||
* @returns | ||
*/ | ||
async function main(options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- aggregates screenshots generated during
nx affected
under/screenshots
directory - generates
screenshots-report.json
with metadata for further processing within*-comment
workflow ( wish this functionality would be baked in within the vrt tool like we have for bundle size )
@@ -12,7 +8,7 @@ concurrency: | |||
cancel-in-progress: true | |||
|
|||
env: | |||
NX_PARALLEL: 4 # ubuntu-latest = 4-core CPU / 16 GB of RAM | macos-14-xlarge (arm) = 6-core CPU / 14 GB of RAM | |||
NX_PARALLEL: 6 # ubuntu-latest = 4-core CPU / 16 GB of RAM | macos-14-xlarge (arm) = 6-core CPU / 14 GB of RAM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use powerful ARM agents ( generation is executed via webpack and storywright ( playwright ) )
afd9dbc
to
9412478
Compare
}); | ||
|
||
console.info(`✅ ${screenshotsPath} contents copied to ${destinationFolder}`); | ||
report[project] = { path: project }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a map of the affected vr-tests-* app projects? Not sure if it'd be useful to include it in the PR comment. I know that we don't have this info just yet, but we might want to post a link to the vr-tool diff app instead
Previous Behavior
New Behavior
Splits/Implements VRT pipelines in 2 to follow GHA pattern on forks for future enablement.
Out of scope:
Related Issue(s)