Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new cci command group for hashing configs, flows, and dependencies and for freezing flows #3833

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlantz
Copy link
Contributor

@jlantz jlantz commented Sep 21, 2024

Commands for tapping into the freeze functionality used for publishing to MetaDeploy and for creating hashes of key parts of the configuration of a build, often dynamically resolved, for use in pipeline automations.

Test cases coming soon but wanted to get the PR in to start getting feedback.

  • New cci hash command group
    • cci hash config: Hashes full project config
    • cci hash config --locators project__package,orgs__scratch__feature: Hashes only two sections of config
    • cci hash flow dev_org: Hashes the current dynamic configuration of the dev_org flow
    • cci hash flow dev_org --freeze: Freezes the dev_org flow to a flattened list of static steps
    • cci hash dependencies: Resolves and hashes the current production dependencies for the project
    • cci hash dependencies --resolution-strategy prerelease: Resolve and hashes the current prerelease dependencies for the project
  • New cci flow freeze dev_org: Freezes the flow, hashes the frozen flow, outputs dev_org__a1b2c3D4.yml with the frozen flow defiinition
  • New cumulusci.core.github.set_github_output for handling setting a GitHub Actions output variable if running in a GitHub Actions worker
  • Added freeze method to flowrunner

… flows:

- New `cci hash` command group
    - `cci hash config`: Hashes full project config
    - `cci hash config --locators project__package,orgs__scratch__feature`: Hashes only two sections of config
    - `cci hash flow dev_org`: Hashes the current dynamic configuration of the `dev_org` flow
    - `cci hash flow dev_org --freeze`: Freezes the `dev_org` flow to a flattened list of static steps
- New `cci flow freeze dev_org`: Freezes the flow, hashes the frozen flow, outputs dev_org__a1b2c3D4.yml with the frozen flow defiinition
- New `cumulusci.core.github.set_github_output` for handling setting a GitHub Actions output variable if running in a GitHub Actions worker
- Added `freeze` method to flowrunner
@jlantz jlantz requested a review from a team as a code owner September 21, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant