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

Rebuild assets #994

Merged
merged 1 commit into from
Jun 7, 2019
Merged

Conversation

bocharsky-bw
Copy link
Contributor

@bocharsky-bw bocharsky-bw commented Jun 6, 2019

Somehow running yarn build on TravisCI sets the repo in a dirty state:
https://travis-ci.org/symfony/demo/builds/541616536

Actually, the same for me when I run yarn build locally. I rebuilt the assets - let's check if tests pass now.

P.S. Basically, continue #990 (comment)

@javiereguiluz
Copy link
Member

This is still failing (The command "yarn install && yarn encore production && git add --all && git diff --staged --shortstat --exit-code" exited with 1.) but I'm going to merge it anyway to have the assets updated. Thanks.

@javiereguiluz javiereguiluz merged commit 312baf4 into symfony:master Jun 7, 2019
javiereguiluz added a commit that referenced this pull request Jun 7, 2019
This PR was merged into the master branch.

Discussion
----------

Rebuild assets

Somehow running `yarn build` on TravisCI  sets the repo in a dirty state:
https://travis-ci.org/symfony/demo/builds/541616536

Actually, the same for me when I run `yarn build` locally. I rebuilt the assets - let's check if tests pass now.

P.S. Basically, continue #990 (comment)

Commits
-------

312baf4 Rebuild assets
@bocharsky-bw bocharsky-bw deleted the rebuild-assets branch June 7, 2019 13:45
@bocharsky-bw
Copy link
Contributor Author

Hm, I see it fails, and that's weird :/ Probably the output depends on Yarn/NPM version... and if so - it makes difficult (impossible?) to use this little trick to fail builds if yarn encore production generated a new output. It sounds like we should match the env on locally and on TravisCI. I'll think about this problem, not sure how to fix it properly yet

@stof
Copy link
Member

stof commented Jun 13, 2019

could the issue be caused by what is described in this comment: webpack-contrib/mini-css-extract-plugin#308 (comment) ?

@bocharsky-bw
Copy link
Contributor Author

Thanks @stof ! Yes, I confirm that's the problem, the paths different on CI and on local computers where we generate and commit them to the repo. Though, not sure about possible workaround here, The only way I see so far - turn off versioning, then the trick with checking diffs on CI should work

@Lyrkan
Copy link
Contributor

Lyrkan commented Jun 17, 2019

Weird, I thought this issue only happened with recent versions of mini-css-extract-plugin (symfony/webpack-encore#564 has been blocked for a while because of that)...

I couldn't find any workaround and I'm not sure fixing it in mini-css-extract-plugin will be as simple as what's described in the comment linked by @stof (using dependency.content for this._identifier) so, for now, disabling versioning for the commited files as suggested in #1004 is probably the best thing to do.

@bocharsky-bw
Copy link
Contributor Author

Thank you for your feedback @Lyrkan ! Actually, IIRC (I've tried many solutions) we have problems with changed hashes for JS files only, CSS ones are good.

javiereguiluz added a commit that referenced this pull request Jun 25, 2019
…ky-bw)

This PR was squashed before being merged into the master branch (closes #1004).

Discussion
----------

Tweak versioning and return back failing on CI

A possible fix for: #994 (comment)

Commits
-------

5fcb943 Tweak versioning and return back failing on CI
sayjun0505 added a commit to sayjun0505/sym_proj that referenced this pull request Apr 16, 2023
…ky-bw)

This PR was squashed before being merged into the master branch (closes #1004).

Discussion
----------

Tweak versioning and return back failing on CI

A possible fix for: symfony/demo#994 (comment)

Commits
-------

5fcb943 Tweak versioning and return back failing on CI
mwhorse46 added a commit to mwhorse46/sym_proj that referenced this pull request Apr 16, 2023
…ky-bw)

This PR was squashed before being merged into the master branch (closes #1004).

Discussion
----------

Tweak versioning and return back failing on CI

A possible fix for: symfony/demo#994 (comment)

Commits
-------

5fcb943 Tweak versioning and return back failing on CI
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

4 participants