Tuesday, 2024-01-30

abelurHowdy vsevolod_  Are there any example how the var expansion works with the job groups? I see this https://review.opendev.org/c/jjb/jenkins-job-builder/+/900745/9/tests/yamlparser/job_fixtures/job-and-macro-expansions.yaml does not have any job-group examples. It's a bit confussing.01:21
abelurSeeing errors from  workflow run mostly because of JJB 6x updates https://github.com/o-ran-sc/ci-management/actions/runs/7704353256/job/2099649866701:22
vsevolod_I suppose job-group expansion should not be changed06:53
vsevolod_May be you need to replace `!include-raw:` -> `!include-raw-escape:` here06:59
vsevolod_I mean, if this include does not supposed to be escaped07:00
vsevolod_* to be expanded07:00
opendevreviewMerged jjb/jenkins-job-builder master: Update TAP publisher plugin  https://review.opendev.org/c/jjb/jenkins-job-builder/+/90653607:03
abelurvsevolod_:  in what situation should we need to include-raw vs include-raw-escape? My understanding is only when var are expanded we would need to  escape it right? 07:16
abelurvsevolod_: what about places where we have use `- shell:` directly? 07:17
abelurhttps://www.irccloud.com/pastebin/9TE30oiG/shell-escape07:18
vsevolod_It's vice-versa07:19
vsevolod_should be escaped so won't be expanded07:19
vsevolod_I want to rename those in next release to *-expand and *-verbatim07:19
vsevolod_They always cause confusion07:20
abeluryup, I second that! It def makes more sense! 07:20
vsevolod_And about `-shell:` above:07:37
vsevolod_I don't see problem with code you provided that would cause this error07:38
vsevolod_may be you actually used `${ALLOW_PROJECTS}` there?07:38
vsevolod_this shell would be expanded, as usual07:38
abelurI change that into the following:07:39
vsevolod_Ah, I see: you provided source for different macro. Failed is distribution-check-wipe, you provided is distribution-check-verify-groupid07:40
abelurhttps://www.irccloud.com/pastebin/G4qZcnRg/07:40
vsevolod_but I see variable used in there, `{gerrit-project}`07:41
abelurand put the `- shell:` into the script `distribution-check-verify-groupid.sh`, does not through that error anymore, so does that mean its still gonna be an runtime issue? 07:41
vsevolod_gerrit-project will not be expanded, when you use include-raw-escape07:42
abeluroh, boy! thatn `jjb test` does not even complain or fail the test07:42
vsevolod_Why it should, it just includes this variable as is, without expanding it. It will fail on runtime07:43
abelurAh right! I would also need to change `{gerrit-project}` -> `{{gerrit-project}}` then. 07:44
abelurmy bad07:44
vsevolod_No, It won't help07:44
vsevolod_Just use include-raw:07:44
vsevolod_or move it back as it wa07:45
vsevolod_or move it back as it was07:45
vsevolod_Just don'nt use {} around ALLOW_PROJECTS07:45
vsevolod_And, may be, you need a cofee :)07:45
abelurhaha! always more the coffee, more merrier!  :-))07:46
abeluralrighty, I just move it back to `- shell: !include-raw:`. Thank you07:47
abelurThat's a lot of work migrating the source code repos! we have several repos where this gotta be fixed then with JJB 6x :(07:47
abelurNeed to do this with care of would have runtime issues with the workflows. 07:48
vsevolod_Yeah, sorry for that07:48
abelurNo, all good! At least its more easily readable! Do you have refs to some examples I can go thru?07:49
vsevolod_I would suggest to compare output of test before and after - if they do not differ, everything is ok07:49
vsevolod_It was on jjb list message07:49
abelurahha! that's a good check! I'll keep that in mind.07:49
vsevolod_And you provided it yourself also:07:50
vsevolod_https://review.opendev.org/c/jjb/jenkins-job-builder/+/900858/8/tests/yamlparser/job_fixtures/job-and-macro-expansions.yaml07:50
vsevolod_That is actually full example of what should be changed07:50
abelurah cool! that is the same link I provided earlier.  07:52

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