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
Unknown Object (File)
Mon, Apr 15, 10:22 PM
Unknown Object (File)
Sun, Apr 7, 3:02 AM
Unknown Object (File)
Sat, Apr 6, 7:28 PM
Unknown Object (File)
Sat, Apr 6, 8:22 AM
Unknown Object (File)
Fri, Apr 5, 3:10 AM
Unknown Object (File)
Sun, Mar 31, 12:41 AM
Unknown Object (File)
Sat, Mar 23, 7:19 PM
Unknown Object (File)
Thu, Mar 21, 12:39 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.