- 28 Jan, 2021 1 commit
-
-
Lukas 'Eipi' Eipert authored
In order to have quicker compilations while developing we are adding an incremental compiler to webpack to render routes on demand. When the developer is working on the dev server and enables the incremental compiler with DEV_SERVER_INCREMENTAL=true, the new functionality is enabled. The biggest problem to solve here: How can we _know_ which entry point to render and which not? Our current webpack integration with rails requires the webpack manifest to have a list of all existing entry points. So our incremental compiler takes the following approach: Every compilation of webpack will run `generateEntries` which generates a list of all our entry points. In that function we are able to replace all page specific entrypoints and point them to an empty file, unless we explicitly want them to compile. In the webpack-dev-server itself we register a middleware which keeps track of all the page specific bundles requested. Whenever a page specific bundle is requested that hasn't been requested before, we add it to the list of bundles we want compiled. This approach allows us to dynamically change the entry points without a need to restart webpack alltogether _and_ it works with hot module reloading. Rather than pointing to a blank javascript we are pointing to one which renders an overlay to let the user know that webpack compiles the page for the first time. Additionally we keep a history of requested routes in `tmp/cache` in order to keep the list of compiled entry points between sessions. In a next iteration we can add a bit of logic and e.g. remove entry points the developer hasn't been visiting in a week. First results are really promising (on my machine): - Memory consumption when idling: 1600MB => 340MB - Max memory: ~2200MB => ~1000MB - Initial Compilation time: 58s => 15s - Recompile afer a file change: 13s => 3s - Visiting a new page that hasn't been visited before, it takes about four seconds to reload the page, seven seconds to completely load the page. Currently the technique still watches all of the source files, so changing an unrelated file will trigger a recompilation. This is however a minor caveat and the same behavior that we currently have, maybe we can optimize in the future.
-
- 26 Jan, 2021 39 commits
-
-
Mark Chao authored
Do not use attributes_for in UpdateVulnerabilityConfidence spec See merge request gitlab-org/gitlab!52496
-
Kamil Trzciński authored
Fix pages migration threads See merge request gitlab-org/gitlab!52571
-
James Lopez authored
Replaced Gold mentions with Ultimate See merge request gitlab-org/gitlab!52501
-
Etienne Baqué authored
Occurrences to be replaced with Ultimate
-
Peter Leitzen authored
Add parser for cilium alerts See merge request gitlab-org/gitlab!51996
-
Can Eldem authored
Cilium alerts were using generic parser This parser is created to parsing alert coming from KAS
-
Vladimir Shushlin authored
-
Vladimir Shushlin authored
-
Kamil Trzciński authored
Remove feature flag autofix indicator [RUN ALL RSPEC] [RUN AS-IF-FOSS] See merge request gitlab-org/gitlab!51998
-
Tetiana Chupryna authored
-
Thong Kuah authored
[RUN-AS-IF-FOSS] Extend the interface of (prepend|extend|include)_if_ee helper methods See merge request gitlab-org/gitlab!51677
-
Toon Claes authored
Maintain data parity between ExperimentUser & ExperimentSubject See merge request gitlab-org/gitlab!51659
-
Mikołaj Wawrzyniak authored
Update Project/Group Exporter temp folder cleanup See merge request gitlab-org/gitlab!51969
-
Rémy Coutable authored
Package/plan name changes for whats_new See merge request gitlab-org/gitlab!51648
-
Rémy Coutable authored
Update doorkeeper to 5.5.0.rc2 [RUN ALL RSPEC] [RUN AS-IF-FOSS] See merge request gitlab-org/gitlab!52171
-
Igor Drozdov authored
It contains a fix of 2.7 Ruby warning CHANGELOG: https://github.com/doorkeeper-gem/doorkeeper/blob/master/CHANGELOG.md
-
Adam Hegyi authored
Do not use attributes_for in RemoveDuplicateCsFindings spec See merge request gitlab-org/gitlab!52497
-
Achilleas Pipinellis authored
Remove outdated versions, and other style updates See merge request gitlab-org/gitlab!52389
-
Craig Norris authored
Remove old versions and add style updates.
-
Peter Leitzen authored
Swap to more sensible shift factory defaults See merge request gitlab-org/gitlab!52539
-
Thong Kuah authored
[RUN ALL RSPEC] Fix broke CE tests due to merge train pipeline check See merge request gitlab-org/gitlab!52556
-
Stan Hu authored
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52137 introduced a `merge_train_pipeline?` check in the view, but this method was only available in EE. We now define a method in CE that is overriden in EE.
-
Achilleas Pipinellis authored
Update verification section in Geo framework doc See merge request gitlab-org/gitlab!51776
-
GitLab Release Tools Bot authored
[ci skip]
-
GitLab Release Tools Bot authored
[ci skip]
-
Lin Jen-Shin authored
Merge branch '299822-flaky-test-on-spec-features-projects-show-user_sees_git_instructions_spec-rb-1-1-3-2-1-1' into 'master' Resolve "Flaky test on ./spec/features/projects/show/user_sees_git_instructions_spec.rb[1:1:3:2:1:1]" See merge request gitlab-org/gitlab!52457
-
David O'Regan authored
Apply GitLab UI for create file button in MR See merge request gitlab-org/gitlab!51795
-
Yogi authored
-
Brandon Labuschagne authored
Add URL Navigation to Pipeline Analytics Charts See merge request gitlab-org/gitlab!52338
-
Andrew Fontaine authored
If a query string of `?chart=XXX` is added to the URL, the appropriate tab is selected. Currently, the only correct values are `pipelines` and `deployments`. All other values are ignored, and `pipelines` is used as the default. If the application would not display tabs, nothing is affected.
-
Jacques Erasmus authored
Fix misspelling of 'vulnerabilities' in API See merge request gitlab-org/gitlab!52380
-
Amy Qualls authored
The word is misspelled in definitions, which means it shows up as a misspelled word in our docs.
-
Kushal Pandya authored
Use GraphQL for Jira importer user mapping member search See merge request gitlab-org/gitlab!52211
-
Coung Ngo authored
This converts the member search from using REST to GraphQL since we are GraphQL-first. https://gitlab.com/gitlab-org/gitlab/-/issues/241746
-
Albert Salim authored
-
Vitaly Slobodin authored
Fix line spacing in billing card header See merge request gitlab-org/gitlab!52521
-
Jake Burden authored
Remove unnecessary flex and container
-
Thong Kuah authored
Add merge train badge to pipelines See merge request gitlab-org/gitlab!52137
-
Payton Burdette authored
Add the train badge for pipelines.
-