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

Kent/agora 2553 spike an orchestrator testing pattern #554

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

Conversation

jefag
Copy link
Contributor

@jefag jefag commented Oct 11, 2024

No description provided.

Copy link

linear bot commented Oct 11, 2024

Copy link

vercel bot commented Oct 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agora-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:21pm
agora-next-cyber ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:21pm
agora-next-dao ❌ Failed (Inspect) Oct 11, 2024 6:21pm
agora-next-ens ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:21pm
agora-next-etherfi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:21pm
agora-next-uniswap ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:21pm

Comment on lines +1 to +5
export function setEnv(envConfig: { [key: string]: string }) {
Object.keys(envConfig).forEach((key) => {
process.env[key] = envConfig[key];
});
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this being called somewhere? What is invoking this? I don't see it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FWIW, I'm not asking because I'm worried about about dead code. I'm asking, because a key part of this is how we're managing the sets of environment variables in the orchestrator.


// Main loop for test runner
async function main() {
const config: Config = loadConfig() as Config;
Copy link
Contributor Author

@jefag jefag Oct 11, 2024

Choose a reason for hiding this comment

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

I would have expected a tenant-config.yaml to load a single tenant's configuration. Not a set of tenants.

The orchestrator could optionally take a list, and loop over each of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants