-
Notifications
You must be signed in to change notification settings - Fork 242
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
cci flow run ci_beta AND cci task install_managed_beta DO not use the latest beta #3745
Comments
Are you using the The documentation for releasing 2GP packages walks through the workflow built into CumulusCI for creating betas and publishing the artifacts: I'm not sure this is a bug. It may be a documentation usability issue, but the |
@jlantz thank you for clarifying. I was extracting the create_package_version step from the release_2gp_beta flow because I didn't want to create a release/tags in GitHub for every 2gp beta version since I am using this for nightly builds. If the goal here is to deploy and package the contents of our main branch each night and make sure no tests fail is release_2gp_beta followed by ci_beta the approach that you'd recommend? Or do you think using one of the feature flows would make more sense? |
CumulusCI's default process, which I'd also recommend, is to create beta versions whenever a pull request is merged using Note that
Here's the reusable workflow for 2GP beta builds I've created in D2X: |
Thank you @jlantz for clarifying the steps and explaining the intention behind the default process. I was curious at one point if the tags/releases might be what the ci_beta flow was counting on existing to find the latest beta. I think it could be helpful to others to clarify that in the documentation. I really appreciate you taking the time to help me with this! I'll go ahead and close this case and let you know if I have any further questions. 😄 |
I'll let the CumulusCI team review and close. I'm just a community contributor myself these days ;) The source for all the docs is under the docs/ directory if you have ideas on where that information could be placed to be most helpful to someone coming from your perspective. |
Describe the bug
I am trying to set up a GitHub Actions workflow that creates a new 2gp beta package version and then runs all tests.
I have permissions that need to get added as a post deploy step so I am skipping validation in the first step of the workflow
cci task run create_package_version --org dev --package_type Managed --skip_validation true
I can see in the logs that the package version is created successfully:
[Success]: Package creation successful
Created package version:
Package2 Id: 0HoVX00000000850AA
Package2Version Id: 05iVX000000DUgDYAW
SubscriberPackageVersion Id: 04tVX0000000BOTYA2
Version Number: 0.1.0.3
Dependencies: []
But then when I run
ci_beta
it uses Version Number 1.27 which is the last major (production) release created for the package in the packaging org. (We still use 1gp for prod releases)I tried running each task individually and then explicitly setting
version: latest_beta
in the stepinstall_managed_beta
and that still results in version 1.27 being used.I then also tried explicitly setting the version to
^^create_package_version.version_number
but when I do that I receive this error:Installing Blackthorn Base 0.1.0.3
Pending
[Pending]: next check in 1 seconds
[02/07/24 20:37:06] [Done]
[02/07/24 20:37:07] [Failed]: Update of InstalledPackage bt_base: Error:
InstalledPackage version number : 0.1.0.3 does not exist!
So this is a two part issue:
Part 1 - Why do
ci_beta
andinstall_managed_beta
use the latest major release instead of the latest beta as per documentation?Part 2 - Why when I set the version explicitly to 0.1.0.3 does it say that version does not exist when I can clearly see in the logs or by running
sf package version list
that it does?Reproduction steps
Your CumulusCI and Python versions
CumulusCI version: 3.84.0
Python version: 3.10.4
Operating System
macOS
Windows environment
No response
CumulusCI installation method
pip
Error Gist
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: