How to apply this at scale? #75
Replies: 2 comments 14 replies
-
|
This is definitely not out of the realm of things AutoTransform should be able to solve, it's just not been my main focus. There's a world where you could separate the repo from the schema file and have them passed separately to the run script. I'd want to think about changes to the structure here that we could use to enable this type of behavior. I suspect it would involve an optional argument to runner scripts that would allow you to override the repo that a schema specifies (at least, that would be the simplest way to implement this). We could also go down the road of fully removing the repo from the schema files and have that supplied separately, maybe via a similar approach to the schema map where we map repo names to objects that you could use. The biggest question is how do we do this in a way that doesn't make the single repo use case difficult to work with. I come from a mono repo world and this definitely shows in how I built AutoTransform, heh. |
Beta Was this translation helpful? Give feedback.
-
|
As I think about it, what might actually be the cleanest way to do this is via the config. I imagine the changes we would need to make are:
#3 and #4 are where I think we'll run in to the most issues. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First, I wanted to start by thanking you for the work you've put into this project! I've played around and got this working in a POC for a single repository. I have questions around how to apply this at scale. I'll use the following scenario to put context around my questions.
From my understanding of AutoTransform, this would require 5 different schema files (one for each repo, as the repo is part of the schema definition). Additionally, AutoTransform would need to be part of each repository, as it appears to apply transformations only on the current repo. The schema repo seems to only come into play when creating a PR, and errors if not referencing the same repo.
Is this understanding correct?
My hope is that something similar to the below diagram would be possible. There would then be a way to scale out a transformation (defined one time) across N number of repos.
sequenceDiagram participant AT as AutoTransformRepo participant T as TargetRepo AT->>+T: Clones base_branch AT->>+AT: Applies Transformation to cloned repo AT->>+T: Open PRIf I'm trying to do something that is out of scope for this tool, please let me know.
Thanks!
JP
Beta Was this translation helpful? Give feedback.
All reactions