I created a SCM package tied with GitLab repository. I set the Webhook on GitLab as described in Fedora documentation and I set push events (all branches) and tag push events.
When I create or edit a README.md in the GitLab repository project, the webhook is triggered with 200 code, but COPR does not run the autobuild.
COPR runs the autobuild only if in Webhook on GitLab I click Test and I select tag push events. The push events, instead, seem to not work, despite I enabled them on the webhook and despite I get Response 200.
Response
200
Headers
Date: Sat, 12 Apr 2025 01:28:20 GMT Server: Apache Strict-Transport-Security: max-age=31536000; preload Upgrade: h2,h2c Connection: Upgrade, close Content-Length: 2 Apptime: D=30387 X-Fedora-Appserver: copr-fe.aws.fedoraproject.org Content-Type: text/html; charset=utf-8
Request
{ "object_kind": "push", "event_name": "push", "before": "7abe5098eecc3f40618fa7fd1f0921a140b0bf39", "after": "3db153585d8fe12481aa0c630fe883b3c09f2df5", "ref": "refs/heads/main", "ref_protected": true, "checkout_sha": "3db153585d8fe12481aa0c630fe883b3c09f2df5", "message": null, "user_id": 12030620, "user_name": "D3vil0p3r", "user_username": "D3vil0per", "user_email": "", "user_avatar": "https://secure.gravatar.com/avatar/a0384569d1307d4e241e9cb3b1ebbd1cfaceae022a99b1cbf0144707ad93de79?s=80&d=identicon", "project_id": 68909307, "project": { "id": 68909307, "name": "athena-config", "description": null, "web_url": "https://gitlab.com/athenaos/packages/system/athena-config", "avatar_url": null, "git_ssh_url": "git@gitlab.com:athenaos/packages/system/athena-config.git", "git_http_url": "https://gitlab.com/athenaos/packages/system/athena-config.git", "namespace": "System", "visibility_level": 20, "path_with_namespace": "athenaos/packages/system/athena-config", "default_branch": "main", "ci_config_path": "", "homepage": "https://gitlab.com/athenaos/packages/system/athena-config", "url": "git@gitlab.com:athenaos/packages/system/athena-config.git", "ssh_url": "git@gitlab.com:athenaos/packages/system/athena-config.git", "http_url": "https://gitlab.com/athenaos/packages/system/athena-config.git" }, "commits": [ { "id": "3db153585d8fe12481aa0c630fe883b3c09f2df5", "message": "Edit README.md", "title": "Edit README.md", "timestamp": "2025-04-12T01:28:18+00:00", "url": "https://gitlab.com/athenaos/packages/system/athena-config/-/commit/3db153585d8fe12481aa0c630fe883b3c09f2df5", "author": { "name": "D3vil0p3r", "email": "[REDACTED]" }, "added": [], "modified": [ "README.md" ], "removed": [] } ], "total_commits_count": 1, "push_options": {}, "repository": { "name": "athena-config", "url": "git@gitlab.com:athenaos/packages/system/athena-config.git", "description": null, "homepage": "https://gitlab.com/athenaos/packages/system/athena-config", "git_http_url": "https://gitlab.com/athenaos/packages/system/athena-config.git", "git_ssh_url": "git@gitlab.com:athenaos/packages/system/athena-config.git", "visibility_level": 20 } }
Content-Type: application/json User-Agent: GitLab/17.11.0-pre Idempotency-Key: 570ebad1-1336-45c0-b197-dbcc08db0d2d X-Gitlab-Event: Push Hook X-Gitlab-Webhook-UUID: 9367613c-4e50-4041-8697-fad1a3592bc4 X-Gitlab-Instance: https://gitlab.com X-Gitlab-Event-UUID: 77073bc0-a06e-42d1-a786-9584ff0dad5a
Tested both on GitLab and GitHub, but push events seem to not work with COPR.
I did further tests. I noted that COPR works as expected when only spec file is changed. If the user just edit another source code file, it is not triggered.
Is it expected?
@msuchy Any idea what could be a problem here?
Metadata Update from @zlopez: - Issue priority set to: Waiting on Assignee (was: Needs Review) - Issue tagged with: copr
I guess you or someone else already filed this upstream?
See: https://github.com/fedora-copr/copr/issues/3703
If you want to change that behavior, please convince upstream to change it. :)
Metadata Update from @kevin: - Issue close_status updated to: Upstream - Issue status updated to: Closed (was: Open)