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

chore(cli): Adding version validation to configure and start #4027

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Sep 20, 2024

This PR adds the version validation to the configure and start commands.

Changes

  • Adds validation at the configurator level to return the validation error
  • CMDs now exit early if version error is found

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom video

Screen.Recording.2024-09-20.at.1.32.11.p.m.mov

Copy link

vercel bot commented Sep 20, 2024

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

Name Status Preview Comments Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 7:31pm

@@ -106,6 +116,11 @@ func (c Configurator) Start(ctx context.Context, prev *Config, flags agentConfig
return nil
}

versionText, isMatching := GetVersion(ctx, cfg)
if !isMatching && os.Getenv("TRACETEST_DEV") == "" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could do the exit cli here but I thought it was better to do that from the cmd level

@xoscar xoscar merged commit e5545b6 into main Sep 20, 2024
40 checks passed
@xoscar xoscar deleted the chore-adding-version-validation-to-setup branch September 20, 2024 20:24
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.

3 participants