Page MenuHomePhabricator

Promote instance identity to the upstream and pass it to commit hooks
ClosedPublic

Authored by epriestley on Jan 25 2015, 5:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 25, 11:41 AM
Unknown Object (File)
Mon, Mar 25, 11:41 AM
Unknown Object (File)
Mon, Mar 25, 11:41 AM
Unknown Object (File)
Feb 21 2024, 2:06 AM
Unknown Object (File)
Feb 14 2024, 9:46 PM
Unknown Object (File)
Feb 4 2024, 12:38 AM
Unknown Object (File)
Feb 3 2024, 7:44 PM
Unknown Object (File)
Feb 3 2024, 7:06 PM
Subscribers

Details

Summary

Fixes T7019. In a cluster environment, pushes currently fail because the commit hook can't identify the instance.

For web processes, the hostname identifies the instance -- but we don't have a hostname in the hook.

For CLI processes, the environment identifies the instance -- but we don't have an environment in the hook under SVN.

Promote the instance identifier into the upstream and pack/unpack it explicitly for hooks. This is probably not useful for anyone but us, but the amount of special-purpose code we're introducing is very small.

I poked at trying to do this in a more general way, but:

  • We MUST know this BEFORE we run code, so the normal subclassing stuff is useless.
  • I couldn't come up with any other parameter which might ever be useful to pass in.
Test Plan

Used git push to push code through proxied HTTP, got a clean push.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Promote instance identity to the upstream and pass it to commit hooks.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jan 27 2015, 10:23 PM
This revision was automatically updated to reflect the committed changes.