Page MenuHomePhabricator

Don't disrupt repository import chain when publishing is disabled
ClosedPublic

Authored by epriestley on Apr 7 2014, 1:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 8:22 AM
Unknown Object (File)
Fri, Apr 5, 11:35 PM
Unknown Object (File)
Sun, Mar 31, 2:07 AM
Unknown Object (File)
Fri, Mar 22, 11:54 PM
Unknown Object (File)
Fri, Mar 22, 11:54 PM
Unknown Object (File)
Fri, Mar 22, 11:09 PM
Unknown Object (File)
Fri, Mar 22, 10:45 PM
Unknown Object (File)
Feb 5 2024, 2:16 PM
Subscribers

Details

Summary

Fixes T4736. Currently, we incorrectly skip the writeImportStatusFlag() call if publishing is disabled (the herald-disabled) check. This means we don't flag the commit as imported, and don't move the pipeline forward correctly.

Instead, we only want to skip the owners stuff, not the pipeline stuff. Move that to a method.

(Also fix a nearby TODO now that we have a permanent failure exception.)

Test Plan
  • Used scripts/repository/reparse.php --owners ... to execute this code, fiddled with things to hit both the disabled and enabled branches and verified the flag stuff is still reached.
  • Faked the exceptions and made sure they raise correctly.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Don't disrupt repository import chain when publishing is disabled.
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.Apr 7 2014, 5:31 PM
epriestley updated this revision to Diff 20670.

Closed by commit rPbd0011076ba1 (authored by @epriestley).