Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
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

Closed

Description

@azlam-abdulsalam

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:

  1. Run an orchestrator:build on develop
  2. 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.

Activity

  1. added
    bug
    on Apr 19, 2021
  2. added this to the Milestone 22 milestone on Apr 19, 2021
  3. azlam-abdulsalam commented on Apr 19, 2021

    @azlam-abdulsalam
    ContributorAuthor

    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

  4. azlam-abdulsalam commented on May 4, 2021

    @azlam-abdulsalam
    ContributorAuthor

    Moving to milestone 23, to get sfpowerkit to accomodate the change

  5. azlam-abdulsalam commented on May 7, 2021

    @azlam-abdulsalam
    ContributorAuthor

    @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

  6. modified the milestones: Milestone 23, on May 31, 2021
  7. removed this from the milestone on Jun 12, 2021
  8. 3 remaining items

  9. azlam-abdulsalam commented on May 3, 2022

    @azlam-abdulsalam
    ContributorAuthor

    This is the workflow for resolving package dependencies

    image

  10. vuha-acn commented on May 3, 2022

    @vuha-acn
    Contributor

    @azlam-abdulsalam Follow-up questions:

    1. 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?
    2. 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.

  11. azlam-abdulsalam commented on May 3, 2022

    @azlam-abdulsalam
    ContributorAuthor
    1. This is applicable only for unlocked packages.
    2. It doesn't matter, if its not part of the repo, we treat it like any other external package ( we use the provided 04t Id)

    This is basically enhancing how we are resolving .LATEST to the correct build number

  12. added a commit that references this issue on Jun 15, 2022
    e3ff2c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

breakingbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions