Skip to content

Document that the CLI uses top-level configuration for shared keys - #1181

Open
Nitjsefnie wants to merge 1 commit into
packit:mainfrom
Nitjsefnie-OSC:docs/1083-cli-config-scope
Open

Nitjsefnie wants to merge 1 commit into
packit:mainfrom
Nitjsefnie-OSC:docs/1083-cli-config-scope

Conversation

@Nitjsefnie

@Nitjsefnie Nitjsefnie commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Documents which configuration values the ordinary Packit CLI uses for keys that exist both at top level and at job level (for example actions or version_update_mask), and which CLI commands do read job-level values.

Related Issues and Pull Requests

Fixes #1083

Changes

  • docs/configuration/jobs.md: new "CLI configuration" note after the job-level override example — job-level values of shared keys are accepted and validated and become part of the job's effective configuration (used by Packit Service), while ordinary CLI commands use the package configuration (top-level, or package-level with packages); enumerates the exceptions (prepare-sources --job-config-index, experimental build in-image-builder, propose-downstream / pull-from-upstream reading the matching job's dist_git_branches, build in-copr reading the qualifying job's project when --project is absent, validate / config validate); notes that invalid job-level values can still fail loading or validation, and that CLI options take precedence.
  • docs/configuration/index.md: qualifies the "Both Packit Service and Packit CLI use this configuration file" statement and links to the new section.
  • docs/cli/index.md: cross-link from the Commands section to the same explanation.

Testing

Docs-only change, checked by the site build (make import + yarn build). Gates that ran, all green on head 5250e718c28f6a4cdb84287bc3d00032951b05ab: fork CI osc-manual.yml run 39831603023 (provenance echo names that SHA), upstream Test deployment (run 39832638211), Zuul packit-service/check, and pre-commit.ci. The documented behavior was verified against current packit/packit source: the configuration loader merges job-level shared keys into the job's effective configuration while CLI commands receive the package configuration, with the listed commands consuming job-level values.

Footer

Generated by GLM-5.3-Flash (brief), GPT-6.1 Sol (implementation), GPT-6 Astra (review)

Explain which configuration ordinary CLI workflows use when shared keys differ between package and job levels. Describe the commands that read job-level values, validation behavior, CLI option precedence, and how Packit Service applies job overrides.

Signed-off-by: Nitjsefnie <zmatek.peter@gmail.com>
Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
@centosinfra-prod-github-app

Copy link
Copy Markdown
Contributor

@Nitjsefnie

Copy link
Copy Markdown
Contributor Author

Heads-up: this branch lives in an organization-owned fork, and GitHub doesn't let maintainers push to those. If anything needs changing, just say so here and I'll make the change on this branch right away.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Document that non-job-specific job-level keys are ignored with CLI

2 participants