Skip to content

Runtime repo consuming to jitUtils repo without using package or dependency update. #33697

Closed

Description

@Anipik

We run a formatting task in our ci, which depends on jitutils tool.
We download the file https://github.com/dotnet/runtime/blob/master/src/coreclr/tests/scripts/format.py#L122

we then run this file to clone the entire repo https://github.com/dotnet/jitutils/blob/master/bootstrap.cmd#L82

We dont use any branches or updating mechanism for this dependency. We should use some other way to consume this dependency.

cc @dotnet/runtime-infrastructure

Activity

  1. added
    area-Infrastructure-coreclr
    on Mar 17, 2020
  2. added
    untriaged
    on Mar 17, 2020
  3. safern commented on Mar 17, 2020

    @safern
    Member
  4. BruceForstall commented on Mar 18, 2020

    @BruceForstall
    Contributor

    There have been some efforts in this direction: dotnet/jitutils#219, dotnet/jitutils#208. It's never been very high priority, given the implementation cost compared to maintaining the status quo.

    cc @echesakovMSFT

  5. added this to the Future milestone on Mar 18, 2020
  6. removed
    untriaged
    on Mar 18, 2020
  7. jashook commented on Mar 18, 2020

    @jashook
    Contributor

    This job only makes sense to run in the active development branch. I do not believe their is value in supporting it anywhere other than runtime/master. I would suggest closing this issue.

  8. ViktorHofer commented on Mar 18, 2020

    @ViktorHofer
    Member

    Are we running the job anywhere else than runtime master? I'm sure we run it in the 5.0 release branches.

  9. BruceForstall commented on Mar 18, 2020

    @BruceForstall
    Contributor

    It probably gets run when we branch for releases, but we normally turn it off in servicing branches if/when it becomes a problem.

  10. ViktorHofer commented on Mar 18, 2020

    @ViktorHofer
    Member

    So this means we have a dependency problem here. Any cross-cutting changes would need to go through multiple branches, i.e. today: runtime/release/5.0-preview1, runtime/release/5.0-preview2, runtime/master and presumable some coreclr/release/3.x branches

  11. BruceForstall commented on Mar 19, 2020

    @BruceForstall
    Contributor

    So this means we have a dependency problem here. Any cross-cutting changes would need to go through multiple branches, i.e. today: runtime/release/5.0-preview1, runtime/release/5.0-preview2, runtime/master and presumable some coreclr/release/3.x branches

    I'm not quite sure I know what you mean here. If changes are required to jit-format in the jitutils branch to adjust for some dotnet/runtime change, that make it incompatible with the servicing branches, then we would need to address that, possibly by disabling the jit-format run in the servicing branch pipelines.

  12. ViktorHofer commented on Mar 19, 2020

    @ViktorHofer
    Member

    Right, that's the point. Changes which need to happen in jitutils first, aren't possible to be made unless you disable the job in all other branches except runtime/master which would then react to the change. Having a branching model protects from such fallouts, ie you forget about a branch which then starts to fail in CI.

  13. ViktorHofer commented on Mar 19, 2020

    @ViktorHofer
    Member

    The other disadvantage of the current consumption model is that the dependency doesn't show up in the graph:

    image

    cc @mmitche

  14. jaredpar commented on Mar 19, 2020

    @jaredpar
    Member

    The other disadvantage is that changes to the jitutils repo can unintentionally break the runtime tests. Because we grab from master vs. a specific commit that means changes propagate to this repository immediately.

    Curious: why did we decide on this method of consuming jitutils vs. a submodule relationship? That seems like what we're effectively doing here just not using a submodule.

  15. BruceForstall commented on Mar 19, 2020

    @BruceForstall
    Contributor

    Curious: why did we decide on this method of consuming jitutils vs. a submodule relationship?

    I don't understand the implication.

    Bottom-line: this system was created years ago, very early, and hasn't been updated since then. As stated above, there have been slight efforts to improve this situation.

  16. jaredpar commented on Mar 19, 2020

    @jaredpar
    Member

    I don't understand the implication.

    Not trying to imply anything here. Was curious if you all considered doing this as a submodule instead of essentially downloading the repository during job execution. What you're doing seems very similar to having a submodule. Wanted to know if you all considered that as a solution.

  17. BruceForstall commented on Mar 19, 2020

    @BruceForstall
    Contributor

    Sorry, when I said "I don't understand the implication", I really meant "I don't understand submodules" :-)

    I'm sure nobody has considered that as an alternative.

  18. ViktorHofer commented on Mar 19, 2020

    @ViktorHofer
    Member

    I'm sure we aren't considering submodules at this point? When I spoke with others about this in the past we were strongly against using submodules for corefx/coreclr.

    I still believe there is value in this discussion - onboarding to dependency flow would make sense IMO.

  19. jaredpar commented on Mar 19, 2020

    @jaredpar
    Member

    I'm sure we aren't considering submodules at this point? When I spoke with others about this in the past we were strongly against using submodules for corefx/coreclr.

    I'm not saying we should use submodules. I just wanted to know if they were considered as an alternative. IF they had and were discarded I wanted to understand why. Sounds like they weren't considered though so a mute point.

  20. ericstj commented on Mar 20, 2020

    @ericstj
    Member

    Silly alternative to a submodule: a nuget package published from JitUtils that contains a targets file that sets a property to the hash of the dependent repo. Could work in existing system and not impose new clone . dependency flow requirements. Just a thought, feel free to downvote.

  21. jashook commented on Mar 20, 2020

    @jashook
    Contributor

    As mentioned, in my opinion the action item to take away from this is to turn off this in every branch other than runtime/master

  22. ViktorHofer commented on Mar 20, 2020

    @ViktorHofer
    Member

    ... and condition the step to only run on master to avoid future fallouts when we branch off from master.

  23. safern commented on Mar 20, 2020

    @safern
    Member

    Something to consider when conditioning the job, the condition needs to be when branch or targetBranch is master so that it also runs on PRs against master.

  24. BruceForstall commented on Mar 20, 2020

    @BruceForstall
    Contributor

    Maybe #33896 will do it?

  25. ViktorHofer commented on Apr 20, 2020

    @ViktorHofer
    Member

    Closing as #33896 as a workaround is good enough.

  26. ghost locked as resolved and limited conversation to collaborators on Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructure-coreclr

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions