linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.31k stars 1.01k forks source link

Build and run make check on patches and post results to our patchwork instance #599

Open pevik opened 4 years ago

pevik commented 4 years ago

Folks from DPDK have very nice patchwork extensions: on [1], they have

Results on patch view that would be even more useful and it's probably supported to our patchwork instance (we have S/W/F fields there as well), but no idea how to do it. Maybe via REST API.

GitHub Action CI: We probably cannot have button (https://api.travis-ci.com/linux-test-project/ltp.svg?branch=master), as we'd have to modify our patchwork instance, which is shared (there would have to be per project settings allowing to add HTML snipped).

[1] https://patches.dpdk.org/project/dpdk/list/ [2] https://patches.dpdk.org/patch/61411/ [3] http://mails.dpdk.org/archives/test-report/2019-October/103177.html [4] http://mails.dpdk.org/archives/test-report/2019-October/103116.html [5] https://github.com/DPDK/dpdk/actions?query=workflow:build

pevik commented 4 years ago

I asked for some info and got replies with tips

http://mails.dpdk.org/archives/ci/2019-November/000447.html

Did you just manually added travis button to the django template (I guess there is no UI setup for it)?

Yes, it is manually added.

Did you implemented posts to S/W/F via REST API [1]?

No, it was done with RPC (pwclient) when REST was not available. The script is in this git: http://git.dpdk.org/tools/dpdk-ci/tree/tools/update-pw.sh

http://mails.dpdk.org/archives/ci/2019-November/000449.html

The only requirement is to wait for the test report to be received, so you can send a public URL of the report to patchwork.

=> tools are available in http://git.dpdk.org/tools/dpdk-ci/, but we should explore pachwork REST API [1] first. [1] https://patchwork.readthedocs.io/en/latest/api/rest/