Skip to content
Snippets Groups Projects

Add gitaly notification on post-receive hook

Merged username-removed-367626 requested to merge gitaly-post-receive-2 into master
All threads resolved!

This is the gitlab-shell part of gitaly#37 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • OK so to have proper tests with a VCR recording we have a bit of work to do:

    That sounds unpractical. @pcarranza git log says you are a recent vcr cassette committer; how did you deal with this?

    Edited by Jacob Vosmaer (GitLab)
  • I am strongly inclined to fake it with localhost and hand-edit the vcr cassette before committing.

  • added 1 commit

    • 6bc3b925 - Use api/v4 for gitaly notification and add tests

    Compare with previous version

  • @jacobvosmaer-gitlab I think faking it with localhost is correct, those cassettes had to be edited anyways to remove the real secret token from dev.gitlab.org. That also allowed me to realize I need to use api/v4 for this endpoint. Check the latest commit.

  • Jacob Vosmaer (GitLab) resolved all discussions

    resolved all discussions

  • added 1 commit

    • 09e48144 - Use api/v4 for gitaly notification and add tests

    Compare with previous version

  • Jacob Vosmaer (GitLab) resolved all discussions

    resolved all discussions

  • @eReGeBe please pick a maintainer to have this reviewed and merged. No further comments from me at this time.

  • added Gitaly label

  • @rspeicher could you take a look at this one?

  • Robert Speicher
  • @eReGeBe @jacobvosmaer-gitlab Is this meant for 8.17 or 9.0?

  • assigned to @eReGeBe

  • @rspeicher it'd be nice to have this in 8.17 because it would allow us to do more experimenting. It would be experimental-only. Does that impact the timing of when to merge this?

    Whether having this in 8.17 is realistic depends on us getting https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8983 in too.

  • Robert Speicher resolved all discussions

    resolved all discussions

  • @jacobvosmaer-gitlab Works for me. I'll merge this now and give it %9.0, but if we get the MR you referenced in for %8.17 we can bump the shell version and include it.

  • Robert Speicher changed milestone to %9.0

    changed milestone to %9.0

  • Robert Speicher mentioned in commit a6e5b9a1

    mentioned in commit a6e5b9a1

  • Hmm now what happens if we bump gitlab-shell in gitlab-ce before https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8983 is merged. @eReGeBe will we have a problem then? What happens if gitlab-shell master talkes to gitlab-ce api and gitlab-ce does not have this endpoint yet?

  • @jacobvosmaer-gitlab just tried locally. You get a line like this one in gitlab-shell.log: E, [2017-02-17T17:11:25.518180 #17690] ERROR -- : API call <POST http+unix://%2FUsers%2Falejandro%2Fgdk%2Fgitlab.socket/api/v4/internal/notify_post_receive> failed: 404 => <{"error":"404 Not Found"}>., but the push succeeds and no errors are communicated to the user, so we should be fine.

  • Fine-ish. People out there do watch those logs and this will lead to questions. :) But the most important thing is that users are not bothered.

  • Please register or sign in to reply
    Loading