Tuesday, 2022-03-22

-@gerrit:opendev.org- Simon Westphahl proposed on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 831430: Dequeue items that can no longer merge https://review.opendev.org/c/zuul/zuul/+/83143006:08
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 831460: Handle Github branch protection rule webhook events https://review.opendev.org/c/zuul/zuul/+/83146007:25
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 830840: Make it possible to configure job retries with zuul_return https://review.opendev.org/c/zuul/zuul/+/83084009:12
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 830840: Make it possible to configure job retries with zuul_return https://review.opendev.org/c/zuul/zuul/+/83084009:13
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 832361: Support submitWholeTopic in Gerrit https://review.opendev.org/c/zuul/zuul/+/83236109:15
-@gerrit:opendev.org- Zuul merged on behalf of Dong Zhang: [zuul/zuul] 831925: Inject bundle id to inventroy zuul.items https://review.opendev.org/c/zuul/zuul/+/83192509:28
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 830840: Make it possible to configure job retries with zuul_return https://review.opendev.org/c/zuul/zuul/+/83084010:30
-@gerrit:opendev.org- Albin Vass marked as active: [zuul/zuul] 830840: Make it possible to configure job retries with zuul_return https://review.opendev.org/c/zuul/zuul/+/83084010:30
-@gerrit:opendev.org- Simon Westphahl proposed on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 831873: Use JobData for Build result data https://review.opendev.org/c/zuul/zuul/+/83187311:26
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 830840: Make it possible to configure job retries with zuul_return https://review.opendev.org/c/zuul/zuul/+/83084011:54
-@gerrit:opendev.org- Zuul merged on behalf of Dong Zhang: [zuul/zuul] 827788: Not swallow exception when cat job fails https://review.opendev.org/c/zuul/zuul/+/82778812:19
-@gerrit:opendev.org- Dr. Jens Harbott proposed: [zuul/zuul] 834671: WIP: Handle reviews by anonymous github users https://review.opendev.org/c/zuul/zuul/+/83467112:29
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 832362: Report per-branch cyclic-dependency conflicts https://review.opendev.org/c/zuul/zuul/+/83236212:38
-@gerrit:opendev.org- Zuul merged on behalf of Dong Zhang: [zuul/zuul] 830628: Items in extra paths should be loaded in dependent changes https://review.opendev.org/c/zuul/zuul/+/83062812:38
@q:fricklercloud.dedoes anyone actually use zuul-triggered merges on github? I'm seeing so many weird issues that I start to doubt it13:17
like look at https://github.com/osism/ansible-defaults/commit/a7b365ba45880bb858f1b72eacddfe26a6c204dd, the commit title is duplicated and the "<>" are stripped from the commit message
-@gerrit:opendev.org- Dr. Jens Harbott proposed: [zuul/zuul] 834687: Do not duplicate the commit title on github https://review.opendev.org/c/zuul/zuul/+/83468713:28
-@gerrit:opendev.org- Dr. Jens Harbott proposed: [zuul/zuul] 834671: WIP: Handle reviews by anonymous github users https://review.opendev.org/c/zuul/zuul/+/83467114:41
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 834693: Bugfix: fix extra-config-paths for subdirectories https://review.opendev.org/c/zuul/zuul/+/83469314:43
@fungicide:matrix.org> <@q:fricklercloud.de> does anyone actually use zuul-triggered merges on github? I'm seeing so many weird issues that I start to doubt it14:45
> like look at https://github.com/osism/ansible-defaults/commit/a7b365ba45880bb858f1b72eacddfe26a6c204dd, the commit title is duplicated and the "<>" are stripped from the commit message
could that just be github's ui at fault? here's the actual commit in patch form as served from github: https://github.com/osism/ansible-defaults/commit/a7b365ba45880bb858f1b72eacddfe26a6c204dd.patch
@fungicide:matrix.orgalso it looks like the dco signed-off-by and the reviewed-by footers got split into separate paragraphs instead of both being in the footer. i wonder if that has anything to do with the missing <>14:47
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 834693: Fix extra-config-paths for non root directories https://review.opendev.org/c/zuul/zuul/+/83469314:47
@frickler:freitrix.dethat .patch link does show both issues like the UI, not sure what else you see there14:47
@frickler:freitrix.dethe \n\n between the commit_message body and the added footers is intentionally added by zuul https://opendev.org/zuul/zuul/src/branch/master/zuul/driver/github/githubreporter.py#L33114:49
@fungicide:matrix.orgoh, zuul created that commit, not you?14:49
@fungicide:matrix.orgdid it rebase your commit when merging or something?14:49
@fungicide:matrix.orgalso i see what you mean now about the doubled sumbect, it's in the subject header but then also included in the first line of the body14:50
@clarkb:matrix.orgI thought zuul just clicks the merge button14:50
@frickler:freitrix.deno, that's what zuul does when merging. the original commit submitted for the PR is https://github.com/osism/ansible-defaults/pull/65/commits/19e69f6fe73d2531abba97422db7273cfeaaa0f814:50
@fungicide:matrix.org * also i see what you mean now about the doubled subbect, it's in the subject header but then also included in the first line of the body14:51
@frickler:freitrix.dezuul amends the commit message, see the function around the line I linked and the two patches I submitted earlier14:52
@fungicide:matrix.orgyeah, found the reviewed-by addition in this function: https://opendev.org/zuul/zuul/src/branch/master/zuul/driver/github/githubreporter.py#L317-L33414:54
@fungicide:matrix.orgoh, you already linked to it as well14:55
@frickler:freitrix.debtw. I also didn't manage to run the unit tests locally. and 60-90 mins for that job is also ... wow https://zuul.opendev.org/t/zuul/builds?job_name=zuul-tox-py38&project=zuul/zuul14:57
@fungicide:matrix.orglooks like it would need some sort of heuristic to be able to discern between a commit message with an existing footer and one without, since in the without case it would need to add a blank line before appending its reviewed-by lines, while in the with case it should not add a blank line first14:57
@frickler:freitrix.de> <@fungicide:matrix.org> looks like it would need some sort of heuristic to be able to discern between a commit message with an existing footer and one without, since in the without case it would need to add a blank line before appending its reviewed-by lines, while in the with case it should not add a blank line first14:59
yes, because of that complication I didn't tackle that part so far
@fungicide:matrix.orgdid you manage to spot why change.body_text is getting <> filtered out?14:59
@frickler:freitrix.denot yet. I did verify that the body does contain the <> in the github API response, but nothing more15:00
@fungicide:matrix.orgsuspicious we might be running it through some sort of html sanitizer (maybe inside requests itself)15:01
@frickler:freitrix.decurl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/osism/ansible-defaults/pulls/65 | jq '.body'15:01
@clarkb:matrix.org> <@frickler:freitrix.de> btw. I also didn't manage to run the unit tests locally. and 60-90 mins for that job is also ... wow https://zuul.opendev.org/t/zuul/builds?job_name=zuul-tox-py38&project=zuul/zuul15:07
Zuul's unittest framework is more like unittests with a lot of functional tests along side it. YOu need a zookeeper running and mysql and all the associated ssl certs. There are scripts in tools/ to help bootstrap this. But a lot of the time is due to the more functional nature of the testing
@fungicide:matrix.orgfor not splitting the footer, it could probably re.match on something like ``'^[^ ]:'`` for the last line to decide if there's a preexisting footer15:08
@fungicide:matrix.org * for not splitting the footer, it could probably re.match on something like `'^[^ ]*:'` for the last line to decide if there's a preexisting footer15:09
@frickler:freitrix.de> <@clarkb:matrix.org> Zuul's unittest framework is more like unittests with a lot of functional tests along side it. YOu need a zookeeper running and mysql and all the associated ssl certs. There are scripts in tools/ to help bootstrap this. But a lot of the time is due to the more functional nature of the testing15:10
I tried those and none of them worked. the tox-docker things seem helplessly outdated and with the docker-compose setup I got the same connect timeout issues that were mentioned the other day
@clarkb:matrix.orgIts been a while since I ran it but tools/test-setup-docker.sh is what worked for me in the past15:12
@clarkb:matrix.orgI wonder if it is a zookeeper version thing since that docker-compose file doesn't pin zookeeper15:13
@fungicide:matrix.orglooks like the github connection is getting the pr body_text from github3.pulls not directly from the github api, so filtering may be happening in there15:14
@fungicide:matrix.orgi don't see anywhere that zuul is mangling the body_text on its own15:15
@fungicide:matrix.orgdigging around in github3.py source now to see if i can find it15:19
@fungicide:matrix.orgno smoking gun yet, but the PullReview class has several related attributes: ``body`` is the pr body in markdown format, ``body_html`` is in html formatting, and ``body_text`` is "The plain-text formatted body of this review." (which given its proximity to the other two, suggests it may be defanged/sanitized in order to make it more "plain")15:25
@fungicide:matrix.org * no smoking gun yet, but the PullRequest class has several related attributes: `body` is the pr body in markdown format, `body_html` is in html formatting, and `body_text` is "The plain-text formatted body of this review." (which given its proximity to the other two, suggests it may be defanged/sanitized in order to make it more "plain")15:29
@fungicide:matrix.orgthe github api seems to just return "body" according to their api docs, so i'm still trying to figure out how github3 turns the body into body_text15:34
@fungicide:matrix.orgbingo! https://docs.github.com/en/rest/overview/media-types#text15:50
@fungicide:matrix.orgfrickler: ``curl -H "Accept: application/vnd.github.v3.text+json" https://api.github.com/repos/osism/ansible-defaults/pulls/65 | jq '.body_text'``15:53
@fungicide:matrix.orgit's github's "text" conversion stripping the <>15:53
@fungicide:matrix.orgapparently not all printable ascii is "text" in github's world15:55
@fungicide:matrix.orgyeah, github3 sets ``Accept: application/vnd.github.v3.full+json`` when it makes requests, and that is how it gets all three of body, body_text and body_html15:58
@frickler:freitrix.defungi: nice digging. we certainly don't want to use html, so the question is whether we can simply use body instead of body_text or whether we need some special treatment for that16:03
@fungicide:matrix.orgthe docs claim "body" is in markdown format16:04
@fungicide:matrix.orgbut what they mean by that is anybody's guess16:04
@jim:acmegating.comthe pull request body16:04
@frickler:freitrix.dewell I assume you can add markdown in the UI when editing the message for the PR16:04
@fungicide:matrix.orgmaybe that's their way of saying they don't "interpret" the markdown for you if you use "body"16:04
@jim:acmegating.comyeah, it's not the same thing as a commit message16:04
@frickler:freitrix.dewell if the PR consists of a single commit, the initial body is copied from that commit's commit message16:05
@frickler:freitrix.deand the thing is called "commit_message" again when submitting the pr_merge request16:06
@frickler:freitrix.delet me put some markup into a PR and see how it looks in the API16:09
@frickler:freitrix.deit has \r\n instead of \n but otherwise I think this looks usable https://api.github.com/repos/osfrickler/testbed/pulls/516:18
@frickler:freitrix.deseems we currently also would lose the "- " prefixes for any line, which will be at least as confusing as losing the "<>"16:18
@blaisep-sureify:matrix.org> <@avass:vassast.org> yeah apparently that works, thanks!16:20
Since I'm do neg the tutorial, I made this change to docs/source/examples/docker-compose.yaml:
```
gerritconfig:
image: docker.io/zuul/zuul-executor
environment:
- http_proxy
- https_proxy
- no_proxy=${no_proxy},gerrit
depends_on:
- gerrit
volumes:
- "sshkey:/var/ssh:z"
- "nodessh:/var/node:z"
- "./playbooks/:/var/playbooks/:z"
- "certs:/var/certs:z"
- "../../../tools/:/var/zuul-tools/:z"
# NOTE(pabelanger): Be sure to update this line each time we change the
# default version of ansible for Zuul.
command: "/usr/local/lib/zuul/ansible/2.9/bin/ansible-playbook /var/playbooks/setup.yaml \
&& sh -c 'zkServer.sh start-foreground'"
networks:
```
@blaisep-sureify:matrix.orgNo sucess16:20
@frickler:freitrix.deI think the doc https://zuul-ci.org/docs/zuul/latest/config/project.html#value-project.merge-mode.squash-merge is wrong or at least confusing. "Squash merges each change onto the branch." sounds to me like every commit will end up in the branch individually, instead all commits are really squashed into a single commit that is added to the branch17:52
@frickler:freitrix.dealso why is there no merge-mode that maps to github's "rebase"? or is that what "merge-resolve" really means?17:53
@frickler:freitrix.dewhen testing merging via github UI, it seems it does not use the PR body at all. instead one gets a template filled out that one can then edit, how it gets filled depends on the merge mode again17:54
@fungicide:matrix.orgyeah, so to summarize, the underlying design problem is that the commit message in a single-commit pr is making a lossy round-trip through github's pull request description and then stuffed back into the final commit message18:32
@fungicide:matrix.orgthis seems more like a github design short-coming, but maybe we can find reasonable workarounds18:33
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:18:33
- [zuul/zuul] 831430: Dequeue items that can no longer merge https://review.opendev.org/c/zuul/zuul/+/831430
- [zuul/zuul] 831873: Use JobData for Build result data https://review.opendev.org/c/zuul/zuul/+/831873
@vlotorev:matrix.orgHi, I filed security issue to https://storyboard.openstack.org/#!/story/2009938, have zuul maint seen this?19:21
@jim:acmegating.comvlotorev: we have now, thanks!19:24
@andrebeltrami:matrix.orgHi all, we got stucked in our CI with the following task https://github.com/openstack/devstack/blob/master/roles/capture-system-logs/tasks/main.yaml. Anyone already have this issue, or have an idea what's going on. The task started but never finish.19:41
@clarkb:matrix.org> <@andrebeltrami:matrix.org> Hi all, we got stucked in our CI with the following task https://github.com/openstack/devstack/blob/master/roles/capture-system-logs/tasks/main.yaml. Anyone already have this issue, or have an idea what's going on. The task started but never finish.19:53
You might try updating the shell task there to run `set -x` which will enable tracing to hopefully identify where it is stuck
@blaisep-sureify:matrix.org> <@avass:vassast.org> yeah apparently that works, thanks!19:54
* ...ok.. I will try that too, because I get this error:
@andrebeltrami:matrix.orgI will try it Clark , thank you... 19:59
-@gerrit:opendev.org- Guillaume Chauvel proposed:21:22
- [zuul/zuul] 732068: tutorial: Add "Use zuul jobs" https://review.opendev.org/c/zuul/zuul/+/732068
- [zuul/zuul] 732069: tutorial: Add "gate pipeline" https://review.opendev.org/c/zuul/zuul/+/732069
- [zuul/zuul] 732070: tutorial: Add "job secrets" https://review.opendev.org/c/zuul/zuul/+/732070
-@gerrit:opendev.org- Zuul merged on behalf of Tristan Cacqueray: [zuul/zuul] 834570: Update axios to fix CVE-2022-0536 https://review.opendev.org/c/zuul/zuul/+/83457022:46
-@gerrit:opendev.org- Zuul merged on behalf of Simon Westphahl: [zuul/zuul] 832655: Support non-top-level dirs as extra config path https://review.opendev.org/c/zuul/zuul/+/83265523:25
@jim:acmegating.comit looks like the ibm cloud sdk module used by the ibmvpc driver just became incompatible with python 3.6: https://zuul.opendev.org/t/zuul/build/0c95b5b7151d4c8eb638df68f4e44a8423:48
```AttributeError: module 'ssl' has no attribute 'TLSVersion'```
@jim:acmegating.comshould we:23:50
# pin to an older version
# add a python version skip to the unit test and update the docs saying it's not compatible with 3.6
# or drop 3.6 support from zuul/nodepool (it's eol)?
@jim:acmegating.com * should we:23:50
* pin to an older version
* add a python version skip to the unit test and update the docs saying it's not compatible with 3.6
* or drop 3.6 support from zuul/nodepool (it's eol)?

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