8000 [collectd 6] Cirrus CI / GitHub Workers - sync config with main branch by hnez · Pull Request #4084 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[collectd 6] Cirrus CI / GitHub Workers - sync config with main branch #4084

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 12 commits into from
Feb 1, 2023

Conversation

hnez
Copy link
Contributor
@hnez hnez commented Jan 30, 2023

Hi,

we've found some differences in the way the CI behaves between the main and the collect-6.0 branches in #4077.
This PR cherry-picks all changes to .cirrus.yml and .github/workflows/build.yml from main on top of collectd-6.0.

Changes introduced here that were not in main/collectd-6.0 are:

  • Usage of on_failure: instead of || cat … || false in the .cirrus.yml to print a log on failure. This matches the what 1b040d7 already did in the collectd-6.0 branch and is imho prettier.
  • Trigger on changes to the collectd-6.0 branch in the GitHub action config instead of main.

My only experience with these CI runners is them flagging my pull requests as bad, so feel free to comment if something looks wrong.

The GitHub worker config will likely need to be extended to disable plugins that are not yet buildable.

ChangeLog: CI: Update collectd-6.0 branch to match main

mrunge and others added 2 commits January 30, 2023 14:11
* [githubactions] Use collectd-ci container to run tests

Uses containers for collectd provided by collectd/ci-docker [1]
Repeats what travis was using for building collectd

* checks out branch
* installs dependencies (already in containers)
* runs the script commands from travis (pkg-config, confgure, make)

[1] https://github.com/collectd/ci-docker

[githubactions] Add config flags to builds

* [githubactions] Add a job for experimental OSes

* [GHA] update actions for new distro containers in collectd/ci-docker

* Mark ``make check`` as optional for now

it is not passing reliably, and is being marked as optional until it is

Co-authored-by: BarometerExperimental <barometer-experimental@container>
@hnez hnez requested a review from a team as a code owner January 30, 2023 13:45
@collectd-bot collectd-bot added this to the 6.0 milestone Jan 30, 2023
elfiesmelfie and others added 8 commits January 30, 2023 14:48
…cies (collectd#3975)

* [ci][gha] Replace trusy with Bionic and Focal

Ubuntu 14.04 (Trusty) is out of standard support [1].
``make check`` fails for test_capabilities, as noted in [2].
[3] indicates that the cause is glibc, but that updates are not expected
to the version in trusty.

This PR replaces trusty with Ubuntu 18.04 (Bionic) and 20.04 (Focal).

[1] https://wiki.ubuntu.com/Releases
[2] collectd#3936
[3] collectd#3927 (comment)

* [ci][cirrus] Make Valgrind error on defininte memory leaks only

Valgrind gives errors when it find possible leaks;
update the options to only error on definite leaks.

This is done using the VALGRIND_OPTS env var, which is used by valgrind
when it is invoked.

* [ci][gha] Make Valgrind error on defininte memory leaks only

Valgrind gives errors when it find possible leaks;
update the options to only error on definite leaks.

This is done using the VALGRIND_OPTS env var, which is used by valgrind
when it is invoked.
* [ci][gha] Add a test log when the tests fail

* [ci][cirrus] Update CI to provide test logs on failure

Co-authored-by: Matthias Runge <mrunge@redhat.com>
)

* [ci][gha] Rename tasks

* [ci][gha] Update and use MAKEFLAGS

* [ci][gha] Remove continue-on-error from ``make distcheck`` tasks

Installation of bzip2 and make distcheck were failing on el8.
This was resolved by updating it to use CentOS Stream 8 in [1]

[1] collectd/ci-docker#55
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
It had been reached EOL at November 30th, 2020.
There is no security updates available anymore.

ref. https://wiki.centos.org/About/Product

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@hnez hnez force-pushed the hnez/collectd6-ci branch from faa1224 to 6b9686d Compare January 30, 2023 13:48
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@hnez hnez force-pushed the hnez/collectd6-ci branch from 5f1ba8c to 542f40e Compare January 30, 2023 14:25
@hnez
Copy link
Contributor Author
hnez commented Jan 30, 2023

I've now added enough configure flags to the GitHub worker config to make most jobs build.
The remaining build errors look like valid (but small) issues to me that should be solved by fixing them and not by modifying the job config to work around them.

@eero-t
Copy link
Contributor
eero-t commented Jan 30, 2023

This causes v6 CI to fail to same code issues in plugins as v5 CI already fails, for which there are several open tickets (#4034, #4027, #4018).

@mrunge
Copy link
Member
mrunge commented Feb 1, 2023

Thank you! While there are undeniable CI failures, I still think this is a good step forward. I am inclined to merge it anyways.

@mrunge mrunge merged commit e4aced6 into collectd:collectd-6.0 Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0