Page MenuHomePhabricator

Prevent "Wait for Build Commits" from creating billions of logs
ClosedPublic

Authored by hach-que on Aug 29 2014, 4:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 10:46 PM
Unknown Object (File)
Thu, Apr 11, 11:00 AM
Unknown Object (File)
Wed, Apr 10, 11:01 AM
Unknown Object (File)
Feb 16 2024, 8:24 AM
Unknown Object (File)
Feb 3 2024, 12:35 AM
Unknown Object (File)
Jan 19 2024, 11:33 AM
Unknown Object (File)
Jan 17 2024, 1:58 AM
Unknown Object (File)
Jan 13 2024, 12:48 AM
Subscribers

Details

Summary

Resolves T5987. This build step was at some point converted to use yielding, which meant that whenever the build step executes it will create a new log. This checks to see if there is an existing log before creating a new one and uses that instead.

Long term we're going to need some way of attaching data to PhabricatorWorkerYieldException that can be read when the build step starts again; this will allow us to move more build steps off while (...) { ... sleep(X); } loops and onto yielding.

Test Plan

Tested locally.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hach-que retitled this revision from to Prevent "Wait for Build Commits" from creating billions of logs.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 29 2014, 12:40 PM
hach-que updated this revision to Diff 24999.

Closed by commit rPf015cb50fe6a (authored by @hach-que).