-
Notifications
You must be signed in to change notification settings - Fork 6
add package manager option #75
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
Conversation
Braintrust eval reportSay Hi Bot Python (add-package-manager-1751934197)
|
Braintrust eval reportSay Hi Bot (add-package-manager-1751934202)
|
Braintrust eval reportConsole logging (add-package-manager-1751934204)
My Evaluation (add-package-manager-1751934204)
Say Hi Bot (add-package-manager-1751934204)
|
Braintrust eval reportSay Hi Bot (add-package-manager-1751934209)
|
34ecc62 to
bb949ca
Compare
Braintrust eval reportSay Hi Bot Python (add-package-manager-1751934196)
|
c77bfc9 to
472d62a
Compare
472d62a to
5d9a09d
Compare
| "The package manager to use for evals. Valid values: npm, pnpm, yarn, pip, | ||
| or uv depending on the runtime." | ||
| required: false | ||
| default: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we define a default? it looks like if package_manager is "", it goes into an empty case statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it's a bit odd, but it's for backward compatibility. I could try without the default '', but ultimately in the code it will fall back to '' due to the zod parsing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh gotchu! makes sense
| switch (args.runtime.toLowerCase().trim()) { | ||
| case "node": | ||
| switch (args.package_manager) { | ||
| case "": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if default should be defined and this should be removed -- what happens in this empty case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah for backward compatibility it'll be whatever we were doing before. so for node it'll be npx and for python it'll be pip. is that what you had in mind? right now it's just a switch case aliased to npm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeet i forgot about the case statement behavior on no returns -- this makes sense
daviddkkim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good -- just came across an error with yarn.
plz fix when you are ready!
Braintrust eval reportSay Hi Bot Python (main-1751936261)
|
Braintrust eval reportSay Hi Bot Python (main-1751936260)
|
Braintrust eval reportConsole logging (main-1751936265)
My Evaluation (main-1751936265)
|
Braintrust eval reportSay Hi Bot (main-1751936265-955e18da)
|
Braintrust eval report
|
Braintrust eval reportSay Hi Bot Python ([email protected])
|
Braintrust eval reportSay Hi Bot Python ([email protected])
|
Braintrust eval reportSay Hi Bot Python ([email protected])
|
Braintrust eval reportSay Hi Bot Python ([email protected])
|
Braintrust eval reportConsole logging (HEAD-1751936460)
My Evaluation (HEAD-1751936460)
|
Braintrust eval reportSay Hi Bot (HEAD-1751936460-18369f47)
|
Braintrust eval report
|
Braintrust eval reportConsole logging (HEAD-1751936469)
My Evaluation (HEAD-1751936469)
|
Braintrust eval reportSay Hi Bot (HEAD-1751936469-91b995a0)
|
Braintrust eval report
|
No description provided.