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
Frontend build improvements, hopefully fix Fomantic build #10576
Conversation
Prereq tracking still seems fine after this, e.g. I can run |
Added The newly added |
Still investigating how those broken fomantic builds came to be exactly. https://try.gitea.io/fomantic/semantic.min.css indicates 2.8.4 which means my theory might not have been correct. |
Codecov Report
@@ Coverage Diff @@
## master #10576 +/- ##
==========================================
+ Coverage 43.72% 43.75% +0.02%
==========================================
Files 585 585
Lines 82026 82026
==========================================
+ Hits 35864 35887 +23
+ Misses 41724 41706 -18
+ Partials 4438 4433 -5
Continue to review full report at Codecov.
|
I think this is now ready. Here is what it now does:
Regarding the UI issues, I'm still not sure what their cause is but it is certainly either something about unclean builds. I did observe that semantic.min.css file was missing like 30kB data when the issue showed, maybe caused by a bug in fomantic's build process, but the removal of output files before the build should help. |
If this doesn't solve the UI issues reliably, the only explanation I have left is that it's an intermittent issue in fomantic 2.8.4 and we should downgrade to 2.8.3. The incomplete fomantic builds don't show on every build, |
09fc4e7
to
a135f1d
Compare
Squashed and updated commit message. |
- add package-lock.json to webpack/fomantic prereqs making them always rebuild when dependencies change. - remove FOMANTIC_EVIDENCE. It seemed better to just track a few output files instead. - delete fomantic output files before build to prevent possible bugs in fomantic's build. - resolve WEBPACK_SOURCES only once for performance - reorder variables for clarity - use clean-all in Dockerfile - detect busybox for find syntax Fixes: go-gitea#10569 Fixes: go-gitea#10565 Fixes: go-gitea#10570 Fixes: go-gitea#10568
bcd8b9b
to
16d32ad
Compare
Two more fixups included:
|
Fixes: #10569
Fixes: #10565
Fixes: #10570
Fixes: #10568