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
gitlab: 12.8.10 -> 12.10.6 #85293
gitlab: 12.8.10 -> 12.10.6 #85293
Conversation
IMO we should package 12.8.9 if we don't get this tested, reviewed and merged in the next few days. The GitLab admin dashboard screams "Update ASAP". |
@GrahamcOfBorg test gitlab |
gitlab-ee fails to build, because webpack runs out of memory (even though there is enough memory left on the system):
|
Try changing the bundle exec rake webpack:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS="--max_old_space_size=2048" |
When loading the admin dashboard, I get a message saying "Error loading the statistics. Please try again" and this appears in the gitlab.service log:
|
Pushing to repository gives this:
This seems have the same cause as the previous problem:
|
@petabyteboy can we bump to 12.8.9 for now? Looks like 12.9.x requires a bit more work. |
Sure! I've never actually done such an update, so how did you do it for 12.8.8? Does the update script support updating to the latest fix release somehow? |
Sorry, this comment actually fell off my radar. The I fixed this and ran the update, PR in #85623. |
@petabyteboy can you update this to the latest release, 12.10.2? |
Done, there are still errors in vgo2nix though and I had to use --keep-going (in which case it doesn't seem to print any errors). |
Thanks! So how are things looking with |
The vgo2nix fixes were merged upstream in nix-community/vgo2nix#37 and an update to include these fixes in nixpkgs is being tracked in #86933. The additional logging also gives us a clue about the issues that continue to exist even with the updated vgo2nix:
So appearantly this Google gocloud repository uses some strange branch naming scheme that is not correctly picked up by vgo2nix. To work around this you can add "--keep-going" to all invocations of vgo2nix in the update script. I am not sure how it handles those dependencies that fail, but it doesn't seem to have an effect on the functionality. I am not sure if this hacky workaround should be committed even, but I uploaded a diff you can apply locally here. I just ran some manual tests in a VM and pushing to a repository as well as looking at the admin dashboard works without errors in this case. I will have to test if upgrading an older GitLab state will cause any issues to say if the issues I had previously seen are still there. |
I rebased once more to have the updated vgo2nix included in this branch, so you can just run the update script with |
Bumped to 12.10.6 and added one patch to gitaly to revert a change that prevents the gitlab shell secret from being read correctly. Someone should probably figure out why exactly it breaks but for now this fixes pushing to repositories. |
Somehow the build for gitaly succeeds with the revert patch, but it does not fix the issue. Reverting the commit in a local clone of gitaly and changing the src of the gitaly package to the "lib.cleanSource /path/to/gitaly" fixes the issue though. |
Hmm, I tried bumping to 12.9.8 due to this, but even with
|
There are multiple occurances of vgo2nix, did you add the parameter for all of them? I would even expect the error, but I can not reproduce it with --keep-going added to all occurances. |
Indeed you're right - only added it to two of the occurences 🤦♂️. Let's see if things go through now. |
vgo2nix is flaky, and it seems passing `--keep-going` to it gets it to do the right thing (tm), so let's add this for now instead of not being able to bump anything at all. See NixOS#85293 for the full discussion.
It did succeed, but I'm not entirely sure about which of the other patches you prepared here are also required on that version of GitLab to get pushing to work again. Did that become necessary with 12.10.x, or is it already broken in 12.9.x? |
Afaict this change which broke stuff was merged for 12.10. |
@GrahamcOfBorg test gitlab |
Thanks! I did not see this part. |
Motivation for this change
Fixes #83478.
Changes for vgo2nix are here: https://github.com/petabyteboy/vgo2nix
First I still saw vgo2nix failures, then I added "--keep-going" to see if there was more than one failure, and then all failures disappeared.
For ruby I got an error about the bundler version (1.17.3 vs 2.1.4). I changed the ruby version to 2.7, and then got the opposite error. It seems like some of the lockfiles were created with bundler 1.17.3 and some were created with 2.1.4, so I manually changed all to 2.1.4.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)@talyz @flokli