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

fix(ci): fix warnings #2775

Merged
merged 1 commit into from
Dec 19, 2024
Merged

fix(ci): fix warnings #2775

merged 1 commit into from
Dec 19, 2024

Conversation

giladchase
Copy link
Contributor

Without --all-targets they don't run on tests and benchmarks.

@reviewable-StarkWare
Copy link

This change is Reviewable

@giladchase giladchase force-pushed the gilad/fix-warnings branch 7 times, most recently from 20a5b8f to c48097f Compare December 18, 2024 18:14
Also add required dependency for benchmarks, which cannot be run without
`testing`.
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @giladchase)


scripts/run_tests.py line 47 at r1 (raw file):

        elif self == BaseCommand.CLIPPY:
            clippy_args = package_args if len(package_args) > 0 else ["--workspace"]
            return ["cargo", "clippy"] + clippy_args + ["--all-targets"]

nice!!
solves @Itay-Tsabary-Starkware 's issue, right?

Code quote:

return ["cargo", "clippy"] + clippy_args + ["--all-targets"]

crates/blockifier/Cargo.toml line 83 at r1 (raw file):

name = "blockifier_bench"
path = "bench/blockifier_bench.rs"
required-features = ["testing"]

why is this required? didn't the benchmark run without this before?

Code quote:

required-features = ["testing"]

Copy link
Contributor Author

@giladchase giladchase left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/blockifier/Cargo.toml line 83 at r1 (raw file):

Previously, dorimedini-starkware wrote…

why is this required? didn't the benchmark run without this before?

Yep, with all-targets only the "default target" is run, which is everything branching out of lib.rs/main.rs.
all-targets also runs tests, benchmarks and examples.

The required-feature thing is necessary anyway though, since this benchmark doesn't compile without "testing".


scripts/run_tests.py line 47 at r1 (raw file):

Previously, dorimedini-starkware wrote…

nice!!
solves @Itay-Tsabary-Starkware 's issue, right?

It solves the warnings i had on vscode 😬

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @giladchase)

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @giladchase)


scripts/run_tests.py line 47 at r1 (raw file):

Previously, giladchase wrote…

It solves the warnings i had on vscode 😬

Thanks, it does!
Did we have this check before, and it got removed during recently?

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @giladchase)

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @giladchase)

Copy link
Contributor Author

@giladchase giladchase left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @giladchase)


scripts/run_tests.py line 47 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Thanks, it does!
Did we have this check before, and it got removed during recently?

No idea

@giladchase giladchase merged commit 0434342 into main Dec 19, 2024
17 checks passed
@giladchase giladchase deleted the gilad/fix-warnings branch December 19, 2024 12:30
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants