You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Incorrect Dependencies might be used during build stage #496
Describe the bug
When packages are being built in parallel from different branches at the same time and semantic version is not correctly followed. This would result in packages being built using last known validated packages from a different branch.
To Reproduce
Steps to reproduce the behavior:
Run an orchestrator:build on develop
Run an orchestrator:build on release
Ensure the packages to be built are same and also its dependencies need to be built. Also ensure semantic version is not followed, where build and release is using the same major.minor.patch version and entirely dependent on the 'next' segment
Expected behavior
Only should utilize dependencies from the particular branch or promoted ones if the dependent packages are built from another repo.
To fix this issue, sfpowerscripts will enforce the branch flag in build command. This will break any existing pipelines and new build of all package (from all the open branches) is also required as the there is internal artifact changes
@jhawk-4 Thanks for pointing the fact that .NEXT resets to zero, when this goes live. We might meed to get everyone to do a patch update on all packages
Does this account for both unlocked and source packages (eg. DevHub would be used to track the source package last validated version stored in the Sfpowerscripts artifacts Custom Settings Object?
If the dependent package is not part of the current repo, what happens if it's not available in the same DevHub and another DevHub?
Can we provide a more concrete example using Package A Version 1.0.0, Package B Version 1.1.0 in a diagram to provide more concrete examples? I'm still a little unclear on the versions retrieved from the DevHub for dependencies.
Activity
azlam-abdulsalam commentedon Apr 19, 2021
To fix this issue, sfpowerscripts will enforce the branch flag in build command. This will break any existing pipelines and new build of all package (from all the open branches) is also required as the there is internal artifact changes
azlam-abdulsalam commentedon May 4, 2021
Moving to milestone 23, to get sfpowerkit to accomodate the change
azlam-abdulsalam commentedon May 7, 2021
@jhawk-4 Thanks for pointing the fact that .NEXT resets to zero, when this goes live. We might meed to get everyone to do a patch update on all packages
3 remaining items
azlam-abdulsalam commentedon May 3, 2022
This is the workflow for resolving package dependencies
vuha-acn commentedon May 3, 2022
@azlam-abdulsalam Follow-up questions:
Can we provide a more concrete example using Package A Version 1.0.0, Package B Version 1.1.0 in a diagram to provide more concrete examples? I'm still a little unclear on the versions retrieved from the DevHub for dependencies.
azlam-abdulsalam commentedon May 3, 2022
This is basically enhancing how we are resolving .LATEST to the correct build number
fix(package): Resolve dependencies for Build (#1019)