Add convenience symlink to integration test output#1105
Merged
TheRealFalcon merged 1 commit intoNov 11, 2021
Conversation
Integration test runs get unique log directories at /tmp/cloud_init_test_logs/$DATE_TIME. Make /tmp/cloud_init_test_logs/last always point to the most recent integration test directory.
TheRealFalcon
approved these changes
Nov 11, 2021
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context:
Cloud-init allows automatic log collection from integration tests, however the UX isn't very friendly if tests are being ran repeatedly. Selecting "which directory" is not fun. Consider:
How to choose? (obviously a mix of tab completion and
ls -1output makes it not-horrible, but it could certainly be better)The most common use case is "look at the last run". This change makes that convenient.
Now there is no choice to make for the common use case.
/tmp/cloud_init_test_logs/last/is the answer.Commit message:
Test:
Run any integration test, watch
/tmp/cloud_init_test_logs/last/appear as a symlink to latest test.Run the test again, watch the symlink update.
Checklist: