Skip to content
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

pr-checks: add webpack-config check for changes in webpack config #1560

Merged
merged 7 commits into from
Feb 16, 2022

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Jan 26, 2022

Since we're relying on frontend-components-config to generate parts of our webpack config,
it can be useful to watch out for changes in that generated config on PRs.

A detected change is not a reason to not merge PRs when intentional, but this should make it easier to notice any such changes,
and check that any intended changes don't have unintended side effects for other modes and configs.

This just checks out the PR and the base branch, imports the individual webpack config files, dumps them as json, and diffs the result :).

Before diffing, we normalize filenames (/home/runner/work/ansible-hub-ui/ansible-hub-ui/base/ -> /DIR/), timestamps (js/[name].1643247060362.[fullhash].js -> js/[name].TIMESTAMP.[fullhash].js), and remove Current branch: because we're comparing master with HEAD :).

How this looks with errors: https://github.com/ansible/ansible-hub-ui/runs/4960316969?check_suite_focus=true#step:5:99

@himdel himdel marked this pull request as ready for review January 27, 2022 01:51
himdel added a commit that referenced this pull request Feb 7, 2022
Since we're relying on frontend-components-config to generate parts of our webpack config,
it can be useful to watch out for changes in that generated config on PRs.

A detected change is not a reason to not merge PRs when intentional, but this should make it easier to notice any such changes,
and check that any intended changes don't have unintended side effects for other modes and configs.

This just checks out the PR and the base branch, imports the individual webpack config files, dumps them as json, and diffs the result :).

No-Issue
@himdel himdel merged commit 4ce5dc4 into ansible:master Feb 16, 2022
@himdel himdel deleted the webpack-check branch February 16, 2022 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants