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

Support building via nix #4821

Merged
merged 11 commits into from
Feb 2, 2024
Merged

Support building via nix #4821

merged 11 commits into from
Feb 2, 2024

Conversation

Rheeseyb
Copy link
Contributor

@Rheeseyb Rheeseyb commented Feb 1, 2024

Problem:
We use nix for local development, but a series of scripts to build and deploy the actual project, leading to discrepancies between both environments that tend to cause painful issues when they arise. This has become more important now that we want to be able to use separate nix packages for building vscode vs the rest of the editor, so that we can support different node versions.

Fix:
This PR introduces the required scripts to be able to build and deploy the application using nix exclusively. It also introduces a new vscode-build/shell.nix for building vscode with a different version of node.

Note:
As part of this I also upped the node version to v18 for the rest of the editor. I'm happy to drop that back down to v16 and introduce that change in a separate PR.

Copy link
Contributor

github-actions bot commented Feb 2, 2024

Try me

Copy link

relativeci bot commented Feb 2, 2024

Job #10195: Bundle Size — 62.34MiB (+0.02%).

499b999(current) vs 794431b master#10182(baseline)

Warning

Bundle contains 66 duplicate packages – View duplicate packages

Bundle metrics  Change 3 changes Regression 2 regressions
                 Current
Job #10195
     Baseline
Job #10182
Regression  Initial JS 35.38MiB(+0.03%) 35.37MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.76% 20.18%
No change  Chunks 28 28
No change  Assets 32 32
No change  Modules 4407 4407
No change  Duplicate Modules 490 490
Regression  Duplicate Code 30.7%(+0.03%) 30.69%
No change  Packages 462 462
No change  Duplicate Packages 65 65
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
Job #10195
     Baseline
Job #10182
Regression  JS 62.33MiB (+0.02%) 62.31MiB
Improvement  HTML 11.37KiB (-0.32%) 11.41KiB

View job #10195 reportView feature/nix-docker-build-2 branch activityView project dashboard

@Rheeseyb Rheeseyb changed the title (WIP) Build docker container using nix Support building via nix Feb 2, 2024
@Rheeseyb Rheeseyb marked this pull request as ready for review February 2, 2024 11:59
Copy link
Contributor

github-actions bot commented Feb 2, 2024

Performance test results:
(Chart1)
(Chart2)

shell.nix Outdated

expectedToolVersions :: [(String, [String], [String])]
expectedToolVersions =
[ ("pnpm", ["--version"], ["7.14.2"])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add nodejs to this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's not a bad shout

shell.nix Show resolved Hide resolved
@Rheeseyb Rheeseyb merged commit 0bf0f4e into master Feb 2, 2024
11 of 12 checks passed
@Rheeseyb Rheeseyb deleted the feature/nix-docker-build-2 branch February 2, 2024 15:30
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.

4 participants