Monday, 2023-06-26

@jjbeckman:matrix.orgHi folks,06:36
Quick question. Is the following use case supported in Zuul?
```
github.com
organization A
zuul-config
ogranization B
untrusted_project_a
untrusted_project_b
```
Basically what I want to know is whether Zuul supports using repos from multiple GitHub organizations at once, or is only one supported.
-@gerrit:opendev.org- Zuul merged on behalf of Simon Westphahl: [zuul/zuul] 877454: Don't check branch cache when project not in min. ltimes https://review.opendev.org/c/zuul/zuul/+/87745406:37
@jjbeckman:matrix.orgIf multiple GitHub orgs are supported, I am unsure how to set up multiple GitHub Apps in `zuul.conf`.06:39
-@gerrit:opendev.org- Zuul merged on behalf of Simon Westphahl: [zuul/zuul] 884883: Don't set buildset files for non-live items ahead https://review.opendev.org/c/zuul/zuul/+/88488308:17
@jjbeckman:matrix.orgAh, I figured it out. All I needed to do was install the same GitHub App to multiple organizations08:21
-@gerrit:opendev.org- Simon Westphahl proposed on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 884959: Don't issue multiple merge requests for bundles https://review.opendev.org/c/zuul/zuul/+/88495910:42
-@gerrit:opendev.org- Artem Goncharov proposed: [zuul/zuul] 859939: Implement Gitea driver https://review.opendev.org/c/zuul/zuul/+/85993912:21
-@gerrit:opendev.org- Artem Goncharov proposed: [zuul/zuul] 859940: Implement tests of the gitea driver https://review.opendev.org/c/zuul/zuul/+/85994012:22
@kusumsiri:matrix.orgHello Experts, 15:22
Newbie here. I have created a job for ensure-bazelisk. It is getting success results. But bazelisk seems not install.
Log :
```
2023-06-26 14:21:06.739022 | TASK [ensure-bazelisk : Download bazelisk]
2023-06-26 14:21:08.139075 | ubuntu-jammy | ok: HTTP Error 304: Not Modified
```
Please help me.
@clarkb:matrix.orgIf you look at the job console you should get some pretty good info on which specific task is failing15:24
@clarkb:matrix.orgBut it seems that downloading bazelisk is getting an http 304. I would try to reproduce that with whether or curl or your browser 15:24
@clarkb:matrix.orgAnd work from there15:24
@clarkb:matrix.org* But it seems that downloading bazelisk is getting an http 304. I would try to reproduce that with wget or curl or your browser 15:25
@clarkb:matrix.orghttps://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-bazelisk/tasks/main.yaml#L13-L19 which pulls from https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-bazelisk/defaults/main.yaml#L3 by default15:27
@clarkb:matrix.orgok I get a 302 not a 304. But 304 is a not modified response so maybe you've got a proxy involved?15:30
@clarkb:matrix.orgIf I send multiple requests to github I don't get a 304 so ya that is my suspicion15:30
@kusumsiri:matrix.org Hello Clark, Thanks for such a quick reply. No I dont have a proxy.15:31
@clarkb:matrix.orgok the other thing it could be is maybe you're running the playbook multiple times on the same host and we need to set the force flag to make that happy? https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html#parameter-force15:32
@clarkb:matrix.orgeither that or don't run the role when it has already run before15:32
@kusumsiri:matrix.orgAh, this makes sense. I have tried this several times now. Let me set force flag and update results here. 15:35
@kusumsiri:matrix.orgWhat is the correct way to use 'force' flag please16:06
```
tasks:
- name: Ensure-bazelisk role
include_role:
name: ensure-bazelisk
vars:
bazel_version: '6.2.1'
bazel_release_url: 'https://github.com/bazelbuild/bazel/releases/download'
force: true
```
Log
```
2023-06-26 16:03:37.130804 | ANSIBLE PARSE ERROR
2023-06-26 16:03:37.130839 | Using /var/lib/zuul/builds/5e8b03beffbd4a31a3d3773e56b3ee45/ansible/playbook_0/ansible.cfg as config file
2023-06-26 16:03:37.130855 | [DEPRECATION WARNING]: COMMAND_WARNINGS option, the command warnings feature is
2023-06-26 16:03:37.130866 | being removed. This feature will be removed from ansible-core in version 2.14.
2023-06-26 16:03:37.130875 | Deprecation warnings can be disabled by setting deprecation_warnings=False in
2023-06-26 16:03:37.130884 | ansible.cfg.
2023-06-26 16:03:37.130893 | ERROR! conflicting action statements: include_role, force
2023-06-26 16:03:37.130902 |
2023-06-26 16:03:37.130912 | The error appears to be in '/var/lib/zuul/builds/5e8b03beffbd4a31a3d3773e56b3ee45/untrusted/project_0/gerrit/test1/playbooks/bazelisk.yaml': line 13, column 7, but may
2023-06-26 16:03:37.130921 | be elsewhere in the file depending on the exact syntax problem.
2023-06-26 16:03:37.130930 |
2023-06-26 16:03:37.130939 | The offending line appears to be:
2023-06-26 16:03:37.130948 |
2023-06-26 16:03:37.130957 | tasks:
2023-06-26 16:03:37.130965 | - name: Ensure-bazelisk role
2023-06-26 16:03:37.130974 | ^ here
```
@clarkb:matrix.orgYou have to modify the file I linked above where the get_url role is used. Not where you include the bazelisk role itself16:11
@kusumsiri:matrix.orgClark:  Issue solved. Invaluable help17:32
Thank you very much
```
2023-06-26 17:26:55.419919 | TASK [roles/ensure-bazelisk : Download bazelisk]
2023-06-26 17:26:59.559424 | ubuntu-jammy | ok: OK (5152768 bytes)
```
@clarkb:matrix.orgpushing up a change to update the role in zuul-jobs would be helpful17:33
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 887004: Add github event processing debug logs https://review.opendev.org/c/zuul/zuul/+/88700418:36
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/nodepool] 885088: Fix error with static node reuse https://review.opendev.org/c/zuul/nodepool/+/88508822:39
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 884959: Don't issue multiple merge requests for bundles https://review.opendev.org/c/zuul/zuul/+/88495923:07

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!