Repository navigation
feat: a repository's folder is its root for the jobs that use it - #46
Merged
Merged
Conversation
A repository may read one of its folders as its root (paths.folders in the run message, by repository name). With local files, the Runner resolves the job's playbooks and inventories under <checkout>/<folder> of its own checkout, the whole checkout without one. The folder is checked as the controller checks it, and a job whose folder is not in the checkout ends with its error. Part of ansibleforms/ansibleforms#1634
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.
Part of ansibleforms/ansibleforms#1634.
A repository record may read one of its folders as its root. The controller now sends that folder per repository in the run message (
paths.folders, by repository name). With local files, the Runner resolves the job's playbooks and inventories under<checkout>/<folder>of its own checkout instead of the checkout root:playbookRepo: itsplaybooksfolder under the repository's folder when it has one, else that folder; withplaybookRoot, the folder itselfinventoryRepos: each repository's folderfoldersat all: the whole checkout, as beforeThe folder is checked as the controller checks it (relative, no leading
/, no.nor.., no empty or hidden folder, 250 characters at most). A job whose folder is not in the checkout ends with a clear error. Jobs whose files the controller sends are unchanged: they already get the right folder.Tests keep statement coverage at 100.0%.