Skip to content

feat: a repository's folder is its root for the jobs that use it - #46

Merged
blaipr merged 1 commit into
mainfrom
feat/repository-folder
Dec 2, 2026
Merged

blaipr merged 1 commit into
mainfrom
feat/repository-folder

Conversation

@blaipr

@blaipr blaipr commented Dec 2, 2026

Copy link
Copy Markdown
Member

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: its playbooks folder under the repository's folder when it has one, else that folder; with playbookRoot, the folder itself
  • inventoryRepos: each repository's folder
  • no folder, an empty one or no folders at all: the whole checkout, as before

The 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%.

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
@blaipr
blaipr merged commit 44bb638 into main Dec 2, 2026
8 checks passed
@blaipr
blaipr deleted the feat/repository-folder branch December 2, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant