-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: Migrate Percy from CircleCI to Github Actions #1097
Conversation
|
||
jobs: | ||
snapshot: | ||
name: Take Percy snapshots |
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.
Nit: since name
is often used essentially as a variable, could we name them like variables? If an English description of the job is needed, the description
key should probably be used
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.
@pastelcyborg I'm not aware of a "description" key in the official GHA workflow syntax:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
Would you still prefer names be changed?
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.
Hmmmm, description
is mentioned a number of times in the docs, but it's entirely possible I just don't know Actions/Workflows well enough to understand when it is and isn't available. I trust your judgment - if it's not available, the current names are fine
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.
As far as I'm aware, often the job key itself (from the YAML structure) is used as an identifier for use in other jobs, such as here:
Then the job name is used for displaying in a "pretty" way on GH actions workflow pages, etc
I'm afraid this won't work as needed. In Vanilla copying the static SCSS and HTML was enough to get good approximation of the changes from PR (but we already seen in combined examples PR, that changes to example layout, or percy script were not taken into account, resulting in snapshots being different than after merging). Here, it's even worse. While obviously src contains all our code of components, but the actual look of them depends on much more, for example all the dependencies: Vanilla itself, React, Storybook, etc. Even in the simples and very common case of us updating Vanilla to new version, we will not be able to see relevant differences in Percy (because they are not part of the src). While it would be tempting to copy over the I don't know if there is a good solution for that at this point. It seem to again boil down to what we can and can't do with Percy. We would either need a way to run Percy without secret (and have them use some other way to identifying the build is coming from valid source) or we would need to be able to snapshot to file system, and upload to Percy separately. But to my understanding from previous discussions with their support, neither is possible. |
Blocked, see Jira comment:
|
Closing this as we cannot migrate react components to use GHA for Percy without security concessions, and future architectural changes may make this effort moot anyway. |
Done
clean
command to delete thedocs
directory that is generated by thebuild-docs
command.QA
QA steps
Percy steps
Fixes
Fixes: WD-12705