Skip to content

Precompile fomantic-ui files #13332

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

Merged
merged 2 commits into from
Oct 27, 2020

Conversation

silverwind
Copy link
Member

We rarely change fomantic-ui or its configuration so it's kind of a waste to have it rebuild on every CI run. These changes remove the fomantic files from the build and instead add the relevant output files to the git index, which should shave of 2-3 minutes on every CI run.

make fomantic should still work and should be ran whenever fomantic is updated or its configuration is changed.

@6543 6543 added this to the 1.14.0 milestone Oct 27, 2020
@6543 6543 added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Oct 27, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Oct 27, 2020
@silverwind silverwind changed the title Precomile fomantic-ui files Precompile fomantic-ui files Oct 27, 2020
@silverwind silverwind force-pushed the fomantic-prebuild branch 2 times, most recently from 0de1586 to 760e379 Compare October 27, 2020 21:00
We rarely change fomantic-ui or its configuration so it's kind of a
waste to have it rebuild on every CI run. These changes remove the
fomantic files from the build and instead add the relevant output files
to the git index, which should shave of 2-3 minutes on every CI run.

`make fomantic` should still work and should be ran whenever fomantic is
updated or its configuration is changed.
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 27, 2020
@codecov-io
Copy link

codecov-io commented Oct 27, 2020

Codecov Report

Merging #13332 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13332      +/-   ##
==========================================
- Coverage   42.11%   42.11%   -0.01%     
==========================================
  Files         689      689              
  Lines       75846    75846              
==========================================
- Hits        31942    31941       -1     
- Misses      38671    38672       +1     
  Partials     5233     5233              
Impacted Files Coverage Δ
modules/queue/workerpool.go 59.18% <0.00%> (-0.82%) ⬇️
models/gpg_key.go 53.33% <0.00%> (-0.58%) ⬇️
modules/log/file.go 75.20% <0.00%> (+1.60%) ⬆️
modules/indexer/stats/db.go 69.56% <0.00%> (+8.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7dfb2fc...34a0949. Read the comment docs.

@techknowlogick techknowlogick merged commit 946bbbe into go-gitea:master Oct 27, 2020
@silverwind silverwind deleted the fomantic-prebuild branch October 28, 2020 06:56
@silverwind
Copy link
Member Author

Oddly, the fomantic build still seem to have ran on the master build https://drone.gitea.io/go-gitea/gitea/31821/1/7 but not on the PR build https://drone.gitea.io/go-gitea/gitea/31812/1/7.

silverwind added a commit to silverwind/gitea that referenced this pull request Oct 28, 2020
Followup to go-gitea#13332. Turns out I
missed this dependency which resulted in fomantic-ui being uselessly
rebuild on CI. This fully removes it from the chain so it's not
attempted to be build as part of the main build process.
zeripath pushed a commit that referenced this pull request Oct 28, 2020
Followup to #13332. Turns out I
missed this dependency which resulted in fomantic-ui being uselessly
rebuild on CI. This fully removes it from the chain so it's not
attempted to be build as part of the main build process.
@go-gitea go-gitea locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants