Commit graph

15 commits

Author SHA1 Message Date
Simon Ser
0b8283f7f3 ci: upgrade Debian to Trixie
Signed-off-by: Simon Ser <contact@emersion.fr>
2025-11-15 22:55:23 +01:00
Simon Ser
98d8bb6716 ci: upgrade wayland to v1.23.1
Signed-off-by: Simon Ser <contact@emersion.fr>
2024-10-05 14:35:30 +00:00
Simon Ser
f573fa11cf ci: don't run pipelines in forks
Currently our CI setup has a downside: for each push on a merge
request, two pipelines are triggered. The first is triggered in
the context of the forked repository, and the second is triggered
in the context of the MR in the parent repository.

Replace the workflow rules with the ones in the official docs [1],
so that a branch pipeline isn't triggered when a MR exists for that
branch.

[1]: https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: fbf7fc3517 ("ci: use detached CI pipelines")
2024-05-09 09:02:52 +00:00
Simon Ser
7f200185c2 ci: upgrade ci-templates and Debian
Upgrade Debian to bookworm and ci-templates to the latest commit.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-12-27 19:56:50 +01:00
Pekka Paalanen
14ae0a9b15 CI: bump ci-templates
This should fix the following problem when I targeted a MR to
branch 'color' in Sebastian's fork of wayland-protocols:

$ ci-fairy check-commits --signed-off-by --junit-xml=results.xml
Traceback (most recent call last):
  File "/usr/bin/ci-fairy", line 33, in <module>
    sys.exit(load_entry_point('ci-fairy==0.1', 'console_scripts', 'ci-fairy')())
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/ci_fairy.py", line 1335, in check_commits
    for commit in repo.iter_commits(commit_range):
  File "/usr/lib/python3.9/site-packages/git/objects/commit.py", line 318, in _iter_from_process_or_stream
    finalize_process(proc_or_stream)
  File "/usr/lib/python3.9/site-packages/git/util.py", line 370, in finalize_process
    proc.wait(**kwargs)
  File "/usr/lib/python3.9/site-packages/git/cmd.py", line 447, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git rev-list cifairy/color..HEAD --
  stderr: 'fatal: bad revision 'cifairy/color..HEAD'
'

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2023-05-11 15:10:45 +03:00
Simon Ser
cc0cd4addf ci: skip ci-fairy checks on main branch
We merged a commit by mistake which doesn't have S-o-b. ci-fairy is
unhappy about it and will fail the check. Skip it if we aren't
running in a merge request context.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-04-25 13:41:06 +02:00
Simon Ser
fbf7fc3517 ci: use detached CI pipelines
See [1], required to allow contributors to trigger CI pipelines
for MRs. Example failure can be found at [2].

[1]: https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/540#what-it-means-for-me-a-maintainer-of-a-project-part-of-gitlabfreedesktoporg
[2]: https://gitlab.freedesktop.org/i509VCB/wayland-protocols/-/jobs/40117393

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-04-25 09:39:46 +00:00
Simon Ser
7e2d9e381e ci: upgrade wayland to 1.20.0
This will be useful to use features introduced in wayland 1.20,
e.g. event destructors.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-02-23 07:40:03 +00:00
Simon Ser
4cc189f2a0 ci: add meson-logs artifacts
Makes it easier to investigate CI failures.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-02-23 07:40:03 +00:00
Simon Ser
61038f8a19 Drop autotools
It's been a few releases that we ship Meson support, we should be
able to drop the old autotools build system now.

Signed-off-by: Simon Ser <contact@emersion.fr>
2021-11-09 13:45:33 +01:00
Jonas Ådahl
42da22947b ci: Make the FDO_UPSTREAM_REPO variable global
ci-fairy doesn't know how to to look at $CI_MERGE_REQUEST_PROJECT_PATH
right now, so if we don't manually set $FDO_UPSTREAM_REPO, ci-fairy will
(without verbose logging turned on) silently fall back on the source
repository project path for finding the branch point. This might fail if
the owner of the source repository hasn't updated the `master` branch of
their fork.

Related: https://gitlab.freedesktop.org/freedesktop/ci-templates/-/issues/32

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2021-03-31 08:44:50 +02:00
Jonas Ådahl
0cf92d7ad1 ci: Use ci-fairy to check for Signed-off-by
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2021-03-26 17:29:51 +00:00
Jonas Ådahl
5a2611b7ad ci: Add test-meson step
Apart from the autotools build system, also test the meson build system.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2021-03-26 15:50:36 +01:00
Jonas Ådahl
1e52414765 ci: Switch to upstream ci-templates and use Debian bullseye
This switches to the ci-templates that is found on
https://gitlab.freedesktop.org/freedesktop/ci-templates/

While at it, switch to Debian bullseye, as this contains more reasonably
versioned build tools, i.e. a new enough version of meson.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2021-03-26 15:50:36 +01:00
Simon Ser
f4c76c4cc5
Add .gitlab-ci.yml
The script runs automated protocol validation checks. The image is
generated using fd.o CI templates [1].

[1]: https://gitlab.freedesktop.org/wayland/ci-templates

Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/issues/5
2019-11-21 15:46:50 +01:00