Skip to content
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

[rush-build-graph-plugin] Add plugin for generating a build graph file for the given command #4626

Open
wants to merge 44 commits into
base: main
Choose a base branch
from

Conversation

BPapp-MS
Copy link
Contributor

@BPapp-MS BPapp-MS commented Apr 8, 2024

Summary

We are working with BuildXL to hand Rush's build graph to their build orchestrator, in order to vastly simplify and future-proof the interface between the two.

Details

This plugin runs when a rush command is run with the option --drop-graph FILE_PATH. It taps into the createOperations hook, extracts the necessary info from the graph that it's handed, removes empty commands and forwards their dependencies, validates the resulting graph, drops it as json to the provided FILE_PATH, and exits.

How it was tested

A test repo was created for running the plugin. The graph resulting from running on that repo is saved to a file where unit tests are run against it.

Impacted documentation

Docs should be created on the website only after this plugin is solidified and compatible with BuildXL.

Copy link
Member

@iclanton iclanton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of checking in a whole repo, can tests be run against a simulated repo, or against the rushstack repo itself?

@iclanton
Copy link
Member

iclanton commented Apr 9, 2024

Make sure you include a LICENSE file like this one: https://github.com/microsoft/rushstack/blob/main/rush-plugins/rush-serve-plugin/LICENSE

@BPapp-MS BPapp-MS force-pushed the user/bpapp-ms/add-graph-plugin branch from 562ad40 to 43aecc9 Compare April 11, 2024 23:16
@BPapp-MS BPapp-MS force-pushed the user/bpapp-ms/add-graph-plugin branch from 522c46b to 0fa80ee Compare April 29, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants