Page MenuHomePhabricator

Improve consistency in use of "via", "objectPHID", and "containerPHID" parameters in repository workers
ClosedPublic

Authored by epriestley on Feb 1 2021, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 2:19 PM
Unknown Object (File)
Fri, Nov 8, 7:53 PM
Unknown Object (File)
Sun, Nov 3, 3:00 PM
Unknown Object (File)
Oct 9 2024, 2:38 PM
Unknown Object (File)
Oct 9 2024, 10:39 AM
Unknown Object (File)
Oct 1 2024, 10:12 AM
Unknown Object (File)
Sep 24 2024, 5:21 AM
Unknown Object (File)
Sep 21 2024, 1:00 AM
Subscribers
None

Details

Summary

Ref T13591. Improve how parameters are passed between commit worker tasks:

  • Always pass "via", to track where tasks came from.
  • Always provide "objectPHID" (with the commit PHID).
  • Always provide "containerPHID" (with the repository PHID).
Test Plan
  • Pushed a new commit.
  • Ran bin/repository pull + bin/repository discover, saw commit with all parameters.
  • Ran bin/worker execute ..., saw a Change worker and then a Publish worker with appropriate parameters.
  • Ran bin/repository reparse ... --background, saw workers queue with appropriate parameters.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Include skips for SVN tests with no SVN on system.
This revision was not accepted when it landed; it landed in state Needs Review.Feb 2 2021, 9:40 PM
This revision was automatically updated to reflect the committed changes.