Page MenuHomePhabricator

Double-write file attachment to old "edge" storage and new "attachment" storage
ClosedPublic

Authored by epriestley on May 12 2022, 9:34 PM.
Tags
None
Referenced Files
F15458548: D21816.diff
Mon, Mar 31, 4:36 AM
F15452360: D21816.id52024.diff
Sat, Mar 29, 4:10 AM
F15452354: D21816.id51995.diff
Sat, Mar 29, 4:08 AM
F15452353: D21816.id.diff
Sat, Mar 29, 4:07 AM
F15439299: D21816.diff
Wed, Mar 26, 6:50 AM
F15419251: D21816.id52024.diff
Fri, Mar 21, 4:46 AM
F15407524: D21816.diff
Tue, Mar 18, 6:06 PM
F15392296: D21816.id51995.diff
Sat, Mar 15, 2:21 PM
Subscribers
None

Details

Reviewers
None
Maniphest Tasks
Restricted Maniphest Task
Commits
rPd017f3f21021: Double-write file attachment to old "edge" storage and new "attachment" storage
Summary

Ref T13603. This adds a second write to new "attachment" storage to all writers except one in Paste, which creates the file inline.

Test Plan
  • Updated a macro image, confirmed a write to "attachment" storage (transaction pathway).
  • Updated a blog profile image, confirmed a write to "attachment" storage (legacy pathway).

Diff Detail

Repository
rP Phabricator
Branch
file4
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25714
Build 35542: arc lint + arc unit

Unit TestsFailed

TimeTest
44 msPhabricatorFileTestCase::testFileIndirectScramble
Assertion failed, expected 'true' (at PhabricatorFileTestCase.php:135): Changing attached object view policy should scramble secret. ACTUAL VALUE
221 msPhabricatorCelerityTestCase::testCelerityMaps
3 assertions passed.
9 msPhabricatorConduitTestCase::testConduitMethods
1 assertion passed.
96 msPhabricatorFileTestCase::testFileDirectScramble
2 assertions passed.
6 msPhabricatorFileTestCase::testFileStorageDelete
1 assertion passed.
View Full Test Results (1 Failed · 16 Passed)

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 19 2022, 8:21 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.