Friday, 2023-03-17

-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [opendev/zone-zuul-ci.org] 877727: Add registry.zuul-ci.org https://review.opendev.org/c/opendev/zone-zuul-ci.org/+/87772701:25
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [opendev/zone-zuul-ci.org] 877727: Add registry.zuul-ci.org https://review.opendev.org/c/opendev/zone-zuul-ci.org/+/87772702:04
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/nodepool] 877707: Fix exception in cache update https://review.opendev.org/c/zuul/nodepool/+/87770707:26
-@gerrit:opendev.org- Tobias Urdin proposed: [zuul/zuul] 877599: web: fix build and buildoutput pages for dark mode https://review.opendev.org/c/zuul/zuul/+/87759907:37
-@gerrit:opendev.org- Tobias Urdin proposed: [zuul/zuul] 877740: web: dont toggle dark mode in resetState https://review.opendev.org/c/zuul/zuul/+/87774007:40
-@gerrit:opendev.org- Tobias Urdin proposed: [zuul/zuul] 877744: web: dont set css when prefers dark https://review.opendev.org/c/zuul/zuul/+/87774408:10
-@gerrit:opendev.org- Tobias Urdin proposed: [zuul/zuul] 877599: web: fix build and buildoutput pages for dark mode https://review.opendev.org/c/zuul/zuul/+/87759909:22
-@gerrit:opendev.org- Tobias Urdin proposed: [zuul/zuul] 877740: web: dont toggle dark mode in resetState https://review.opendev.org/c/zuul/zuul/+/87774009:22
-@gerrit:opendev.org- Tobias Urdin proposed: [zuul/zuul] 877744: web: dont set css when prefers dark https://review.opendev.org/c/zuul/zuul/+/87774409:22
@scrungusss:matrix.orgcould anyone point me at some docs for how to add a log source and file, like how zuul collects devstack logs and displays them in the job summary? 10:56
-@gerrit:opendev.org- Zuul merged on behalf of Antoine Musso: [zuul/zuul-jobs] 877700: Remove ignored success-url job attribute https://review.opendev.org/c/zuul/zuul-jobs/+/87770012:39
@tobias-urdin:matrix.orgthe series at https://review.opendev.org/q/topic:web-dark-mode is ready for review, you can check preview from the last patch in the series https://review.opendev.org/c/zuul/zuul/+/877744 – let me know what you think! :)12:56
@jim:acmegating.comTobias Urdin: thanks, i plan to take a look next week :)14:06
@jim:acmegating.comscrungus: https://zuul-ci.org/docs/zuul-jobs/log-roles.html#role-fetch-output is a role that helps with that (but the docs aren't complete, you might want to look at the code too).14:08
@fungicide:matrix.orgscrungus: you can see it configured in the devstack-base job here: https://opendev.org/openstack/devstack/src/branch/master/.zuul.yaml#L411-L45214:11
@scrungusss:matrix.orgthanks, i've seen this. I was wondering if it is possible to pipe output from a command? i.e. instead of something like `/var/log/mylog : logs` you could do something like `$( make_my_logs) : logs` ? 14:15
@fungicide:matrix.orgscrungus: for copying command output, i'd just create a new ansible task to run that command and write it to a file, then add the file to the list of log files for collecting14:17
@fungicide:matrix.orgi think it already does similar things to get service logs out of journalctl14:18
@scrungusss:matrix.orgi'm guessing that this playbook would be specified in the `post-run` step? If i am inheriting from a job that already has a defined `run` and `post-run` which i don't want to override, is there a way to add another task? 14:20
@fungicide:matrix.orga job can add its own post-run playbooks, they will be inserted prior to the post-run playbooks for any inherited jobs14:21
@fungicide:matrix.orgbasically if job C inherits from B inherits from A then zuul runs A-pre,B-pre,C-pre,run,C-post,B-post,A-post in that order14:21
@scrungusss:matrix.orgah perfect, thanks a lot!14:22
@fungicide:matrix.orglike onion layers14:22
@jim:acmegating.comhttps://zuul-ci.org/docs/zuul/latest/config/job.html#job talks about the onion -- last paragraph14:23
@fungicide:matrix.orgnow if only it also had pickle relish too14:23
@fungicide:matrix.organd a bit of mustard14:24
@gchauvel:matrix.orgTobias Urdin: Builds -> a job -> Console 15:20
@gchauvel:matrix.org * Tobias Urdin: Builds -> a job -> Console , mouse over15:21
-@gerrit:opendev.org- Tobias Urdin proposed: [zuul/zuul] 877822: web: fix console tab on build page for dark mode https://review.opendev.org/c/zuul/zuul/+/87782216:17
@tobias-urdin:matrix.orgguillaumec: nice catch! fixed with ^16:17
@g_gobi:matrix.orgDo we have any docs on which merge option we need to use in gitlab for Zuul?16:49
@g_gobi:matrix.orgIf I use fast-forward merge, it failing with `MERGE_FAILURE`.16:51
@g_gobi:matrix.org * If I use fast-forward merge in gitlab repo setting, it failing with `MERGE_FAILURE`.16:54
@clarkb:matrix.orgtdlaw: Is zuul failing to do its local merges? I assume so and that MERGE_FAILURE is being reported by zuul. In general you should set your merge type to match what is in the code review system. I'm not sure about gitlab specifically but I would look at your merger logs to see why it failed16:54
@clarkb:matrix.orgit is entirely possible the failure is valid and you need to rebase16:54
@clarkb:matrix.orgin general though I think fast-forward is somewhat at odds with zuul since zuul can build large speculative git states. If you need to ensure everything is fast forwardable then you end up having human construct those trees and dependencies and you lose this benefit of zuul16:56
@g_gobi:matrix.orgmerger logs means? Where I need to look that?16:57
@g_gobi:matrix.orgMakes sense. Problem is I previously used 4.8.2 now only I update it to 8.1.0. After upgrade I'm seeing this issue.16:58
@clarkb:matrix.orgtdlaw: the zuul-merger and zuul-executor processes (the zuul-executor also runs an internal merger process)16:59
@g_gobi:matrix.orgI don't see zuul-merger service. I'm using docker based zuul environment.17:01
@clarkb:matrix.orgthen it is likely going to be in your executor logs17:02
@g_gobi:matrix.orgThen I need to enable debug logs right?17:03
@clarkb:matrix.orgmaybe? I would check the logs first to see if they provide sufficient info17:04
@g_gobi:matrix.orgI can able to see job completed and zk nodes released but I don't see merge info.17:44
@clarkb:matrix.orgif you find the event id for the triggering event you can grep that value and should get a very complete picture. But jobs shouldn't run at all if the zuul merge is what failed.17:46
@g_gobi:matrix.orgyeah. I checked the same. It ended with `Job execution took: 13027.151 seconds`17:52
@clarkb:matrix.orgok the merge failure may have been when it tried to merge the chnage in gitlab then? Can you check the final report for the buildset?17:53
@clarkb:matrix.orgit should try to merge the MR and then leave a comment iirc and that would be the next place to look at if jobs are running since that implies the pre build merge was fine17:53
@g_gobi:matrix.orgI checked both `Build succeeded` and `This change was not merged by the code review system.` both were not present in executor-logs.18:02
@clarkb:matrix.orgyup so the issue was merging on the gitlab side18:03
@clarkb:matrix.orgyou will probably need to check your gitlab logs or otherwise determine why it failed. Likely because the change is no logner in a fast forwardable state?18:04
@fungicide:matrix.organd consider an alternative merge policy in gitlab, i don't know what the options are there or how you configure them but creating merge commits, cherry-picking, rebasing, squashing, etc when the commit(s) is/are non-fastforwardable18:06
@g_gobi:matrix.orgYeah merge commits seems to be working. 18:07
@fungicide:matrix.orglike clark said, restricting merge actions to only work for fast-forwardable changes loses most of zuul's useful functionality18:07
@fungicide:matrix.orgmerge commits are what we do in opendev's gerrit, and have done for a decade (i think... when did openstack give up on the cherry-pick method there?), works quite well for us in highly active projects18:08
@g_gobi:matrix.orgIf I set fastforward merge I can't able to see the merge option in UI too. If there is any commit added to the target-branch. Then I need to check gitlab-release notes. There was upgrade happened few weeks back.18:08
@g_gobi:matrix.orgThe problems is18:11
I did zuul upgrade from 4.8.2 -> 8.1.0 3 days back
Gitlab upgrade happened 2 weeks back
So, I don't know in which area change happened.
@fungicide:matrix.orgthe main drawback to merge commits is that they are additional commits in the history. some people don't like them because they think they hurt bisectability, but that's not really the case when you're using them for each change unit, more of a problem when you're infrequently merging tons of history at once between different branches. up side to merge commits is they precisely preserve your original commits, which makes developers' local repo copies more sensible as the same commit ids are in the final merge result18:11
@fungicide:matrix.orgcherry-pick, rebase and squash annoyingly rewrite commits so they no longer match what's on the dev's local tree18:12
@fungicide:matrix.orgwhich makes things like reverts more challenging too18:13
@fungicide:matrix.orgfast-forward does have the benefit of still preserving the commits exactly, but with the major down side of forcing everyone to amend their commits and/or coordinate to sequence them in the exact order they plan to approve them18:14
@gchauvel:matrix.orgTobias Urdin: 👍️18:18
@gchauvel:matrix.orgJob "click for details"18:19
@g_gobi:matrix.orgfungi: facts💯18:22
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul-jobs] 877834: Add ensure-quay-repo role https://review.opendev.org/c/zuul/zuul-jobs/+/87783419:34
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul-jobs] 877834: Add ensure-quay-repo role https://review.opendev.org/c/zuul/zuul-jobs/+/87783420:44

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