-
Notifications
You must be signed in to change notification settings - Fork 185
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
Reduce the number of checked in generated files #3006
Comments
Part of the reason I added the GN files to the repo is so that clients can view and download them directly from the repo without needing to install the tools themselves (which, although fast to run, are not particularly cheap to install). Another way to meet this end is to upload zip files containing the GN rules to certain tagged releases. I feel like it's a tradeoff between development velocity and release velocity. |
Let's wait a few weeks to see exactly how Skia/Flutter is going to be downloading these GN files. |
Discuss with: |
I'm okay removing the GN files from the repo so long as the CI still generates and tests them on the fly. Bonus points if CI uploads the GN file as an artifact or at least dumps it to stdout. |
Actually @Manishearth does Julia use our checked-in GN files? |
They were, but I think they're switching to bazel now? I'm not fully sure. |
GN-Gen
Proposal:
LGTM: @Manishearth @sffc @robertbastian Diplomat-Gen
Proposal:
LGTM: @sffc @Manishearth @robertbastian |
@sffc to make the change for GN and add documentation as needed |
I tried removing the lockfile but immediately hit the following error:
It is because the Cargo.toml contains version-specific overrides for our dep tree, and refreshing the lockfile causes these deps to be pulled as different versions: [gn.package.memchr."2.5.0"]
rustflags = []
[gn.package.proc-macro2."1.0.63"]
rustflags = ["--cfg=use_proc_macro", "--cfg=wrap_proc_macro", "--cfg=proc_macro_span"]
[gn.package.quote."1.0.26"]
rustflags = []
[gn.package.serde."1.0.160"]
rustflags = []
[gn.package.serde_derive."1.0.160"]
rustflags = []
[gn.package.libm."0.2.6"] I can try to see if I can use the versions pinned in the top level Cargo.lock file. |
We have quite a few generated files checked in, with CI failing if they are out of date. This happens to me quite a lot, and it's a waste of my time and CI resources (a new commit has to run everything again).
Some files very cheap to generate on the fly (
gn-gen
anddiplomat-gen
), while some like testdata are not. Can we remove the cheap files?The text was updated successfully, but these errors were encountered: