这是indexloc提供的服务,不要输入任何密码
Skip to content

[pentest] Add tests to CI #27464

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

Merged
merged 1 commit into from
Jul 22, 2025
Merged

[pentest] Add tests to CI #27464

merged 1 commit into from
Jul 22, 2025

Conversation

nasahlpa
Copy link
Member

@nasahlpa nasahlpa commented Jun 18, 2025

This commit puts the tests for the pentest framework into CI by setting the timeout to moderate instead to long.

@nasahlpa nasahlpa requested review from nbdd0121 and jwnrt June 18, 2025 15:26
@nasahlpa nasahlpa marked this pull request as ready for review June 18, 2025 15:26
@nasahlpa nasahlpa requested a review from cfrantz as a code owner June 18, 2025 15:26
@nasahlpa nasahlpa added CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0 labels Jun 18, 2025
@pamaury
Copy link
Contributor

pamaury commented Jul 2, 2025

This change looks good to me. Just a note that marking a test as flaky means that bazel will run it three times: if the test fails all three times then it will be still be marked as failed. So marking it as flaky does not completely prevent from blocking the CI (if your test fails really too often), it's only useful if your tests works often enough :)

@nasahlpa
Copy link
Member Author

nasahlpa commented Jul 2, 2025

This change looks good to me. Just a note that marking a test as flaky means that bazel will run it three times: if the test fails all three times then it will be still be marked as failed. So marking it as flaky does not completely prevent from blocking the CI (if your test fails really too often), it's only useful if your tests works often enough :)

Thanks Amaury - I was not aware of this. Is there a way of not letting CI fail when one of these tests fail and instead just report a warning?

@pamaury
Copy link
Contributor

pamaury commented Jul 2, 2025

Not at the moment. If there really is a need for it, we could create an attribute to mark some tests as "do_not_fail_ci". This is actually an interesting discussion, to have some blocking and non-blocking tests. Though the downside is that people might ignore non-blocking tests entirely...

@nasahlpa
Copy link
Member Author

nasahlpa commented Jul 2, 2025

Alright, thanks! I've removed the flaky flag from the tests.

Yes, such a "do_not_fail_ci" could be useful. I agree that people might end up just not caring. Maybe it might be possible that a code owner gets notified when such a "do_not_fail_ci" test fails?

@nasahlpa
Copy link
Member Author

nasahlpa commented Jul 4, 2025

@pamaury if this PR is OK for you, could you please approve it?

@nasahlpa
Copy link
Member Author

Removing the flaky flag is fine as the pentests are now stable.

This commit puts the tests for the pentest framework into CI by
setting the timeout to moderate instead to long.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
@nasahlpa nasahlpa merged commit ff5a921 into lowRISC:master Jul 22, 2025
45 checks passed
@nasahlpa nasahlpa deleted the pentest_ci branch July 22, 2025 15:38
Copy link

Successfully created backport PR for earlgrey_1.0.0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants