Skip to content

vera++: remove non-zero exit code#13403

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
jia200x:pr/vera++_relax_errors
Feb 19, 2020
Merged

vera++: remove non-zero exit code#13403
miri64 merged 1 commit intoRIOT-OS:masterfrom
jia200x:pr/vera++_relax_errors

Conversation

@jia200x
Copy link
Member

@jia200x jia200x commented Feb 18, 2020

Contribution description

As pointed out in #13400 (comment), Vera++ is producing several errors for existing code.

In order to ease the migration, I propose to move remove the non-zero exit code for Vera++, fix all issues found by Vera++ (similar to #12558) and then re enable it back.

This PR basically tells Vera++ to always exit with error code 0. Errors and warning are still displayed in Travis.

Testing procedure

Issues/PRs references

#12558

@jia200x jia200x requested review from benpicco and smlng February 18, 2020 18:56
@benpicco benpicco added Area: build system Area: Build system CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Area: CI Area: Continuous Integration of RIOT components and removed Area: build system Area: Build system labels Feb 18, 2020
@smlng smlng added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 19, 2020
@smlng
Copy link
Member

smlng commented Feb 19, 2020

or as alternative agree on #13400

@benpicco
Copy link
Contributor

It's not just the long lines though.
Vera also likes to complain about constructs like

    uint32_t reg = OSCCTRL_DFLLCTRLB_QLDIS
#ifdef OSCCTRL_DFLLCTRLB_WAITLOCK
          | OSCCTRL_DFLLCTRLB_WAITLOCK
#endif
    ;

And there is quite some churn for PRs that touch many files, like #13409

Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

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

given how many PRs are affected by this, I'd vote for it until we come up with a policy on how to handle those issues.

@benpicco benpicco requested a review from a team February 19, 2020 17:20
@miri64 miri64 merged commit 953e8c9 into RIOT-OS:master Feb 19, 2020
@miri64
Copy link
Member

miri64 commented Feb 19, 2020

Our usual way to handle new check tools, so I agree with @benpicco

@leandrolanzieri leandrolanzieri added this to the Release 2020.04 milestone Feb 20, 2020
@leandrolanzieri leandrolanzieri added the Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation label Feb 20, 2020
@benpicco
Copy link
Contributor

Looks like Vera is back already…

@miri64
Copy link
Member

miri64 commented Feb 23, 2020

Could you name a specific PR, please? Not sure which PR you are referring to. All PRs I've checked had either a pass by vera++ (a green tick after the script... it still shows some errors though) or timed out static tests (see #13426).

@miri64
Copy link
Member

miri64 commented Feb 23, 2020

If you are referring to #13411 and #13414, both were build on Travis before this PR was merged, so no wonder ;-). A simple rebuild would have helped (which as a maintainer you should be able to do with a simple login at Travis)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: CI Area: Continuous Integration of RIOT components CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants