-
Notifications
You must be signed in to change notification settings - Fork 72
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
📢 Feedback/testing: Version 2.0.0 (next) with monorepo support! #164
Comments
Hey @espy, I can confirm that this isn't working for us. The reason is we're relying on This is a problem because:
So, I'd describe this as: To fix it, probably the code in (Should mention that setting up SSH auth in our case would be quite painful; we're inside a container at that point (via Buildkite's docker-compose plugin). A token and env var are much easier to deal with.) |
@espy for us it is working fine (Team City) and we didn't have any authentication problem so our team city setup must also be authenticating with Github via SSH. |
Hey @espy, I think the Team City shouldUpdate() lockfile regex needs to be changed to account for singular and plural "chore(package): update lockfile(s)" |
@espy is there an example that I can fork to make sure the plugin works? |
@espy The commit lockfile(s) plural wording does not work on CircleCI nor AppVeyor. I have one Edit: Added logging and it says both package-lock.json and package.json are staged on the greenkeeper-lockfile-update step here https://circleci.com/gh/patkub/test-gk-lock-circleci/56 |
@espy it's no longer working for us in TeamCity (@tagoro9 ): it's failing due to authentication issues. As @dominics say, we also rely on the See a snippet of the error below:
|
@janl I just tested the new version and we are still getting the error. In exec(`git remote add gk-origin ${remote} || git remote set-url gk-origin ${remote}`) But then in exec(`git fetch`) Which is gonna fetch from the default remote if there is more than one (in our case is fetching from exec(`git fetch gk-origin`) I just tried this on a new branch and seems to work. I'm gonna create a PR with the fix. |
after updating to
i assume that is related to the change directly above? looks like it needs a tweak of some sort |
I'm not getting a lockfile upload on Greenkeeper PRs. The output says "master is not a greenkeeper branch". See this TravisCI run: https://travis-ci.org/valtech-nyc/brookjs/builds/404694533 |
@mAAdhaTTah i think you checked the wrong one of the two builds. looking at the other one, i see the same error as above. |
Same issue as @travi, but on a public repo. |
Heya, @cormacrelf @travi @mAAdhaTTah fix should have been in here: #187 Sorry about the fuss. |
Still getting the same error w/ 2.3.2: https://travis-ci.org/valtech-nyc/brookjs/builds/404693220 |
@mAAdhaTTah Thank you for your patience, a fix for this is incoming now, I just need to wait for a reviewer to come back from lunch 😂 🌯 |
This should do the trick, @2.3.3 or @next — Thanks again for your patience and help! |
So it's not erroring, but it's not pushing a lockfile commit either: https://travis-ci.org/valtech-nyc/brookjs/builds/404693220 There are some error down at the end that may help. |
@mAAdhaTTah Thanks, could you try @next with #190 and set GK_LOCK_DEBUG=1 in your travis config before your runs. That should give us a bit more details. |
Here's a run with GK_LOCK_DEBUG=1, v2.4.0 https://travis-ci.org/cormacrelf/angular-skyhook/jobs/405467762 Didn't produce a commit. I verified the branch myself, it should have. |
Another run here: https://travis-ci.org/valtech-nyc/brookjs/builds/406207189 |
Hi there, I seem to be getting Related issue: serverlize/serverlize#25 |
@hassankhan See @travi's comment above; there are typically two CI runs, only which of which produces a lockfile commit (the "push" one; the "pr" one will not). Also, just wanted to comment that the lockfile update is now happening successfully in my monorepo! 🎉 Thank you for all your help & work on this! |
i think i finally dug into some odd behavior that i've been having far enough to report that there is an issue. i've had success using when running builds for private projects on travis, we inject the npm token needed to pull our private packages into the then, in the
my best guess, without digging through the code yet, is that checking out the commit on has something changed in v2 that could have resulted in this behavior? |
I can confirm that v2 works as expected on AWS CodeBuild. |
Thanks @coderbyheart! |
Everything was working for us with Codeship now with us getting an angular material (angular2 in monorepo definition) update containing the 3 dependencies in that monorepo. Everything except the lock files not updating that is. But notice that we were simply installing the default Will await to see if this fixes things but guess we won't know until we get the next monorepo update from Angular material. We have also have at least two other monorepo dependencies but one isn't in the monorepo definition yet and the other, Angular, doesn't seem to be working yet. Made PRs for both, with the Angular PR merged but still seemingly something wrong with Angular. |
Hello everyone! 👋
🎊 We’ve just shipped preliminary monorepo support for
greenkeeper-lockfile
under thenext
tag with version number2.0.0
. To use it, you must explicitly install this version withIf you are using a default branch on Github that is not called
master
, please set an Environment VariableGK_LOCK_DEFAULT_BRANCH
with the name of your default branch in your CI.In other words, this isn’t in the regular release yet, because we’d like to give everyone the opportunity to test this on their various CI setups. 🔍
📢 Calling the Community
If any of the previous CI contributors are interested and have the time: it would be fantastic if you could take a look and confirm whether this all works on your respective platforms (pinging @ethanrubio, @zetaron , @justindowning, @selbyk, @cbothner, @tagoro9, @dbrockman and @donny-dont). Of course, this isn’t limited to them, any testing and feedback on the various CI services is extremely welcome 🙏 Thanks in advance to anyone who participates!
✅ Travis CI
✅ Circle CI
❓ Jenkins
❓ Wercker
❓ Bitrise
⚡️ Buildkite
❓ Codeship
❓ Semaphore
✅ TeamCity
❓ Drone.io
✅ AWS CodeBUild
Changes
ci-services
, this is now in the core. Instead,lib/git-helpers.js
hashasLockfileCommit()
which checks the actual commit history for the same commit message the current run ofgreenkeeper-lockfile
would generate, in the same branch it would uselib/extract-dependency.js
can now handle several dependencies and several package files at once, and makes use of the new Greenkeeper Monorepo Definitions to determine which modules belong to a single release and should therefore be groupedThanks everyone! 🤖 🌴
The text was updated successfully, but these errors were encountered: