Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

[runbot_gitlab] warnings are errors #163

Open
hbrunn opened this issue Jun 20, 2018 · 3 comments
Open

[runbot_gitlab] warnings are errors #163

hbrunn opened this issue Jun 20, 2018 · 3 comments

Comments

@hbrunn
Copy link
Member

hbrunn commented Jun 20, 2018

In https://github.com/OCA/runbot-addons/blob/11.0/runbot_gitlab/models/runbot_build.py#L49 we fail if the build's state is warning.

Some googling set me up to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5004/diffs#5492807eeff7d8f64b722d397811464b1becdf97_119_122 which seems to be what we want here even though it's not mentioned in the docs: https://docs.gitlab.com/ee/api/commits.html#post-the-build-status-to-a-commit

@moylop260 did you try this and it didn't work? Otherwise, I'll provide a patch to use this some of the coming days.

@moylop260
Copy link
Contributor

moylop260 commented Jun 20, 2018

Hi @hbrunn
I didn't see the success_with_warnings status before.

If gitlab has a "yellow" state could be so good since that travis-ci ignored my comments about:

@moylop260
Copy link
Contributor

@ruiztulio FYI

@ap-wtioit
Copy link
Contributor

I tested this today on our system (gitlab version 11.1.0) and we cannot post success_with_warnings to the commits api (getting a 400 with invalid state)

it seems this new "meta" state should be state success with a flag has_warnings which i couldn't find in the source code or in the documentation of gitlab api for statuses

I could not find how to set the has_warnings for a gitlab commit over the api.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants