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

Unrecognized option: 'save-baseline' #24

Closed
CastilloDel opened this issue Aug 12, 2021 · 4 comments · Fixed by #26
Closed

Unrecognized option: 'save-baseline' #24

CastilloDel opened this issue Aug 12, 2021 · 4 comments · Fixed by #26
Assignees

Comments

@CastilloDel
Copy link
Contributor

When I try to use this extension, I get the following error:

error: Unrecognized option: 'save-baseline'
error: bench failed
Error: The process 'cargo' failed with exit code 101
    at ExecState._setResult (/home/runner/work/_actions/jasonwilliams/criterion-compare-action/move_to_actions/dist/index.js:1:7880)
    at ExecState.CheckComplete (/home/runner/work/_actions/jasonwilliams/criterion-compare-action/move_to_actions/dist/index.js:1:7442)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/jasonwilliams/criterion-compare-action/move_to_actions/dist/index.js:1:6406)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Error: Unhanded error:
Error: The process 'cargo' failed with exit code 101

CI run
It seems like it is trying to use an option that doesn't exist.
I tried with criterion 0.3.5 and 0.3.3

@CastilloDel
Copy link
Contributor Author

Related bheisler/criterion.rs#193 Seems like it happens because I also have tests apart from the benchmarks, but it should still work

@CastilloDel
Copy link
Contributor Author

This workaround seems to work. Maybe this should be documented in the README?

@brainstorm
Copy link

brainstorm commented Aug 16, 2021

@CastilloDel ... it indeed seems strange because that -- --save-baseline is in the main.js for this action in:

https://github.com/boa-dev/criterion-compare-action/blob/master/main.js#L37

I suspect that the --save-baseline master fails because the action is executed in the context of a pullrequest and therefore it should not push to master (until merged to it?).

I'll try to re-run it on our CI and test...

@Razican
Copy link
Member

Razican commented Aug 25, 2021

--save-baseline will only save a local copy of the results of the benchmarks, so it should work. The workaround seems to make sense, maybe we could add it to the README, feel free to open a PR :)

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 a pull request may close this issue.

3 participants