You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are developing/fixing/investigating the new code flow logic, we do have some tests that we can run locally but sometimes we want to run a code flow update over the real repos.
There are 2 problems why we can't quickly open a PR from local in a real dotnet repo:
The GitHub application that the service uses when run in local only has access to the maestro-auth-test organization and it should stay that way.
The local SQL database does not have the data set up and it's very difficult to create the whole structure (repos, installations, channel, subscription, assets, ...). This basically means local test flows are almost impossible to run.
Goal
The E2E workflow should be something like this:
The dev sees a particular subscription failing to trigger, or maybe a PR in VMR that has wrong content. Or maybe the dev wants to customize descriptions of the PR and develop something new.
The dev forks the VMR/repo under maestro-auth-test/ (sets up the branches so they point to the right places..).
The dev runs a tool from arcade-services and passes in the subscription/build IDs from the real PR.
The tool uses devs locally running SQL and PCS service to populate it with data matching (different ID but otherwise same) the real but targeting the forks instead.
The dev triggers the subscription and debugs the service locally while it flows data that mimic the real flow.
The goal should be a script/tool/test that will be easy to run:
The arguments will be the subscription ID, channel, build ID (whatever is necessary to mimic a scenario).
The tool will then:
Look up the real data in production BAR (or INT if we tell it to? not needed in v1)
Call the local PCS and create the same subscription (different ID but otherwise same), channel, build and assets in the local SQL but target repos under the maestro/auth-test/ org (so maestro-auth-test/dotnet or maestro-auth-test-runtime). The dev would fork the repo themselves and update its branches to whatever test setup they need.
The tool can return a subscription ID, or BAR ID or even trigger the subscription if asked
The dev can then trigger the subscription on their own and debug the locally running service
The tool should also be able to create fake builds for arbitrary SHAs - so if I want to flow a given commit of a repo (even a commit I create in the fork with custom changes), I don't need to have a real BAR ID for it. I can ask the tool to create a build for me and then I can flow it manually.
The text was updated successfully, but these errors were encountered:
Context
When we are developing/fixing/investigating the new code flow logic, we do have some tests that we can run locally but sometimes we want to run a code flow update over the real repos.
There are 2 problems why we can't quickly open a PR from local in a real dotnet repo:
maestro-auth-test
organization and it should stay that way.Goal
The E2E workflow should be something like this:
maestro-auth-test/
(sets up the branches so they point to the right places..).The goal should be a script/tool/test that will be easy to run:
maestro/auth-test/
org (somaestro-auth-test/dotnet
ormaestro-auth-test-runtime
). The dev would fork the repo themselves and update its branches to whatever test setup they need.The tool should also be able to create fake builds for arbitrary SHAs - so if I want to flow a given commit of a repo (even a commit I create in the fork with custom changes), I don't need to have a real BAR ID for it. I can ask the tool to create a build for me and then I can flow it manually.
The text was updated successfully, but these errors were encountered: