Skip to content

[CI] Made the Regression Tests Error on Warning #2555

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

AlexandreSinger
Copy link
Contributor

@AlexandreSinger AlexandreSinger commented May 16, 2024

To prevent warnings from showing up in the build in the future, made the
CI error on any warnings during the regression tests.

It looks like VPR originally had the ability to error on warning;
however, it was specific to only VPR. This CMAKE method will now work
for all executables compiled during the tests.

With this merged, this should completely resolve issue #2518

@github-actions github-actions bot added infra Project Infrastructure lang-make CMake/Make code external_libs labels May 16, 2024
To prevent warnings from showing up in the build in the future, made the
CI error on any warnings during the regression tests.

It looks like VPR originally had the ability to error on warning;
however, it was specific to only VPR. This CMAKE method will now work
for all executables compiled during the tests. May want to consider
removing it in the future.
@AlexandreSinger AlexandreSinger force-pushed the feature-ci-error-on-warning branch from 7965fea to 37c6973 Compare May 24, 2024 01:46
@AlexandreSinger
Copy link
Contributor Author

To demonstrate the importance of these changes, a commit was merged yesterday which introduced more warnings:

The commit removed the use of a variable when debug logging is enabled,.

Hence why two of the tests failed. These warnings build up fast I guess.

@vaughnbetz
Copy link
Contributor

Ah, a warning snuck back in already!
https://github.com/verilog-to-routing/vtr-verilog-to-routing/actions/runs/9217393097/job/25359296613?pr=2555

@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels May 24, 2024
@AlexandreSinger
Copy link
Contributor Author

@vaughnbetz It looks like we were correct. Even though the Bison deprecation warnings are still there, this method of failing on warning does not fail the CI in this case. This is actually a good thing. As we discussed this may mean that we can keep the deprecations without suppressing them.

@vaughnbetz vaughnbetz merged commit 9dd5ff6 into verilog-to-routing:master May 27, 2024
53 checks passed
@AlexandreSinger AlexandreSinger deleted the feature-ci-error-on-warning branch May 28, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external_libs infra Project Infrastructure lang-cpp C/C++ code lang-make CMake/Make code VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants