Page MenuHomePhabricator

Don't try to publish build results to bare diffs
ClosedPublic

Authored by epriestley on Feb 12 2019, 11:29 PM.
Tags
None
Referenced Files
F14809710: D20156.diff
Sun, Jan 26, 7:52 PM
Unknown Object (File)
Fri, Jan 24, 10:29 PM
Unknown Object (File)
Sat, Jan 18, 1:12 AM
Unknown Object (File)
Mon, Jan 13, 4:46 PM
Unknown Object (File)
Sat, Jan 11, 12:54 PM
Unknown Object (File)
Sun, Dec 29, 3:27 AM
Unknown Object (File)
Dec 25 2024, 1:02 AM
Unknown Object (File)
Dec 24 2024, 12:25 PM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/conduit-call-is-generating-phd-log-error-message/2380/. If you run builds against a diff which is not attached to a revision (this is unusual) we still try to publish to the associated revision. This won't work since there is no associated revision.

Since bare diffs don't really have a timeline, just publish nowhere for now.

Test Plan
  • Created a diff.
  • Did not attach it to a revision.
  • Created a build plan with "make http request + wait for response".
  • Manually ran the build plan against the bare diff.
  • Used bin/phd debug task to run the build and hit a "revision not attached" exception during publishing.
  • Applied patch.
  • Ran bin/phd debug task, got clean (no-op) publish.
  • Sent build a failure message with "harbormaster.sendmessage", got a failed build.

This isn't a real workflow, but shouldn't fail.

Diff Detail

Repository
rP Phabricator
Branch
harbor1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21977
Build 30014: Run Core Tests
Build 30013: arc lint + arc unit