Symlink artefacts dir to 'all' directory to provide canonical path
ClosedPublic

Authored by mkrizek on Mar 25 2015, 2:45 PM.

Details

Summary

When storing artefacts, there is no canonical path for a given UUID, because the directories are scattered in the per-day directories.
This patch makes sure, that there is a canonical path /all/UUID, so we can reference links without extra knowledge of the execution details.

Test Plan

Untested so far

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
jskladan retitled this revision from to Symlink artefacts dir to 'all' directory to provide canonical path.Mar 25 2015, 2:45 PM
jskladan updated this object.
jskladan edited the test plan for this revision. (Show Details)
jskladan added reviewers: tflink, mkrizek.
jskladan added a project: infrastructure.
jskladan updated this revision to Diff 873.Mar 25 2015, 3:02 PM

Found out a problem with ExecDB's settings on the way - copy-pasting from resultsdb was not the ideal idea...

mkrizek accepted this revision.Mar 26 2015, 9:51 AM

LGTM

This revision is now accepted and ready to land.Mar 26 2015, 9:51 AM
mkrizek commandeered this revision.Mar 31 2015, 10:37 AM
mkrizek edited reviewers, added: jskladan; removed: mkrizek.

I need to push this to hopefully fix T442.

This revision now requires review to proceed.Mar 31 2015, 10:37 AM

Doesn't this kind of undo the change to use date-based dirs? I realize that they're still around but we're still going to have a URL that will take forever to load before too long.

I wonder if we should disable the autoindex on the symlinked dir since it shouldn't be used for anything

In D319#5815, @tflink wrote:

Doesn't this kind of undo the change to use date-based dirs? I realize that they're still around but we're still going to have a URL that will take forever to load before too long.

I wonder if we should disable the autoindex on the symlinked dir since it shouldn't be used for anything

Yeah, thanks for reminding me this, I disabled directory listing on the all dir.

jskladan accepted this revision.Apr 3 2015, 8:18 AM

Probably ready to be closed, since it was merged to the infra-ansible already.

This revision is now accepted and ready to land.Apr 3 2015, 8:18 AM
mkrizek closed this revision.Apr 3 2015, 8:26 AM