Skip to content

Comments

Fix benches and add them to CI#3933

Merged
tiziano88 merged 1 commit intoproject-oak:mainfrom
tiziano88:tzn_fix_benches
May 10, 2023
Merged

Fix benches and add them to CI#3933
tiziano88 merged 1 commit intoproject-oak:mainfrom
tiziano88:tzn_fix_benches

Conversation

@tiziano88
Copy link
Collaborator

@tiziano88 tiziano88 commented May 10, 2023

There is more room for improvement in sharing logic between benches, tests and xtask, but I'll leave that for a separate PR.

Ref #3931 #3738

@tiziano88 tiziano88 requested a review from jul-sh May 10, 2023 12:25
Copy link

@jul-sh jul-sh left a comment

Choose a reason for hiding this comment

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

lgtm, thanks! I'm a big fan of the fact that this also moves the benches from the linux version to the KVM version.

.unwrap(),
)));

let oak_functions_linux_fd_bin_path =
Copy link

@jul-sh jul-sh May 10, 2023

Choose a reason for hiding this comment

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

given that this is now KVM version, should we rename this var?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, done.


./scripts/docker_pull
./scripts/docker_run cargo nextest run --hide-progress-bar
./scripts/docker_run cargo nextest run --all-targets --hide-progress-bar
Copy link

Choose a reason for hiding this comment

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

I'm assuming this is what results in benches being run in CI? Seems suprising.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I was confused too, I always assumed --all-targets means it tries all the possible --targets, instead it's really so it also runs benches (with a single iteration, AFAICT) and examples, which is what we want. Added a comment.

Copy link

Choose a reason for hiding this comment

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

Sweet, thx for adding the comment!

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