Page MenuHomePhabricator

When a commit is marked "closeable", clear the "published" flag
ClosedPublic

Authored by epriestley on Sep 8 2020, 8:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 10:18 AM
Unknown Object (File)
Fri, Apr 5, 6:11 PM
Unknown Object (File)
Feb 17 2024, 11:28 PM
Unknown Object (File)
Jan 6 2024, 7:02 AM
Unknown Object (File)
Jan 5 2024, 1:18 PM
Unknown Object (File)
Jan 4 2024, 1:59 PM
Unknown Object (File)
Dec 29 2023, 3:21 PM
Unknown Object (File)
Dec 23 2023, 9:53 PM
Subscribers
None

Details

Summary

Ref T13552. When a previously discovered commit becomes reachable from a permanent ref, we re-queue workers to update it. However, the commit may already be marked as "published", so the publish worker may do nothing.

It would perhaps be simpler to not mark the commit as published when it isn't reachable from a permanent ref, but this is tricky because the flag is also part of the "imported / all steps" state (see T13580).

Until that can be cleaned up, just clear the flag.

Test Plan
  • Pushed a commit with "fixes X" to a non-permanent branch.
  • Pushed it to a permanent branch.
  • Before change: task failed to close.
  • After change: task closes properly.

Diff Detail

Repository
rP Phabricator
Branch
cref12
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24885
Build 34334: Run Core Tests
Build 34333: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Sep 16 2020, 12:37 AM
This revision was automatically updated to reflect the committed changes.