OCA / stock-logistics-workflow

Odoo Stock, Workflow and Organization
GNU Affero General Public License v3.0
226 stars 642 forks source link

[TESTS] Check warnings #1632

Open rousseldenis opened 2 months ago

rousseldenis commented 2 months ago

@sbidoul @pedrobaeza @OCA/core-maintainers This is a proof of concept that shows how to trigger a failing check on PR's main page in order to warn people about current errors (showed also in tests) and warnings (the main goal of this).

I found that a lot of repositories have bunches of warnings that are never addressed, but should.

The idea is to warn earlier (before merge) people about those warnings. As github has no intermediate (just fail/success) status for checks we cannot do that in normal checks and has to be on separate one.

The idea is to collect logs across matrix steps and run checkog-odoo. The difficult part was to generate unique log file id (if someone has better idea).

Comments are welcome !

hbrunn commented 2 months ago

yes please!

pedrobaeza commented 2 months ago

Well, it sounds good to have it. Any drawback with the storage? Do we have a limit?

sbidoul commented 2 months ago

@rousseldenis that's nice. Related: https://github.com/OCA/oca-addons-repo-template/issues/120

We could also enable this with an environment variable in oca-ci: https://github.com/OCA/oca-ci/issues/10