<div dir="ltr"><div><span style="font-family:arial,sans-serif"><font size="2">Here is a summary from our previous meeting [1] related to this topic.</font></span></div><div><span style="font-family:arial,sans-serif"><font size="2"><br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">Apparently </font></span>the error is caused by the old version of nodejs [2] (usually lower than v6).</div><div><br></div><div>This error is on an independent project [3] so normally the NodeJS supported runtimes are the same that with the current series (AFAIK we use NodeJS 10<span style="font-family:arial,sans-serif"></span>) [4]</div><div><br></div><div>This job uses xenial and xenial seems to provide nodejs 4.2.6 [5] that could explain why we see this error.<br> </div><div><br></div><div><span style="font-family:arial,sans-serif"><font size="2">However, this job inherits from `publish-openstack-artifacts` [6] and this one defines a nodeset based on focal [7] so I wonder why we use xenial here [8].</font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">Notice that focal comes with NodeJS 10.19 [4].<br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2"><br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">The last execution of this job (`<span class="gmail-pf-c-chip__text" id="gmail-pf-random-id-1">release-openstack-javascript</span>`) was successful but it was 18 months ago [9], unfortunately logs aren't longer available for these builds.</font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">It could be worth seeing which version of ubuntu was used during this period. <br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2"><br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">Maybe the solution is simply moving this javascript job onto a  nodeset based on focal.<br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2"><br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">Thoughts?<br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2"><br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[1] <a href="http://eavesdrop.openstack.org/meetings/releaseteam/2021/releaseteam.2021-03-11-17.00.log.html#l-186">eavesdrop.openstack.org/meetings/releaseteam/2021/releaseteam.2021-03-11-17.00.log.html#l-186</a></font></span><span style="font-family:arial,sans-serif"><font size="2"><br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[2] <a href="https://stackoverflow.com/questions/64414716/unexpected-token-in-yarn-installation">https://stackoverflow.com/questions/64414716/unexpected-token-in-yarn-installation</a></font></span><span style="font-family:arial,sans-serif"><font size="2"><br></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[3] <a href="https://releases.openstack.org/reference/release_models.html#independent">https://releases.openstack.org/reference/release_models.html#independent</a></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[4] <a href="https://governance.openstack.org/tc/reference/runtimes/wallaby.html#node-js-runtime-for-wallaby">https://governance.openstack.org/tc/reference/runtimes/wallaby.html#node-js-runtime-for-wallaby</a></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[5] <a href="https://pkgs.org/search/?q=nodejs">https://pkgs.org/search/?q=nodejs</a></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[6] <a href="https://opendev.org/openstack/project-config/src/branch/master/zuul.d/jobs.yaml#L780">https://opendev.org/openstack/project-config/src/branch/master/zuul.d/jobs.yaml#L780</a></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[7] <a href="https://opendev.org/openstack/project-config/src/branch/master/zuul.d/jobs.yaml#L8">https://opendev.org/openstack/project-config/src/branch/master/zuul.d/jobs.yaml#L8</a></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[8] <a href="https://zuul.opendev.org/t/openstack/build/cdffd2a26a0d4a5b8137edb392fa5971/log/job-output.txt#743">https://zuul.opendev.org/t/openstack/build/cdffd2a26a0d4a5b8137edb392fa5971/log/job-output.txt#743</a></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2">[9] <a href="https://zuul.opendev.org/t/openstack/builds?job_name=release-openstack-javascript">https://zuul.opendev.org/t/openstack/builds?job_name=release-openstack-javascript</a></font></span><span style="font-family:arial,sans-serif"></span><span style="font-family:arial,sans-serif"></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 11 mars 2021 à 12:42, Thierry Carrez <<a href="mailto:thierry@openstack.org">thierry@openstack.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We had a release job failure during the processing of the tag event when <br>
1.3.0 was (successfully) pushed to openstack/monasca-grafana-datasource.<br>
<br>
Tags on this repository trigger the release-openstack-javascript job, <br>
which failed during pre playbook when trying to run yarn --version with <br>
the following error:<br>
<br>
/usr/share/yarn/lib/cli.js:46100<br>
   let {<br>
       ^<br>
<br>
SyntaxError: Unexpected token {<br>
     at exports.runInThisContext (vm.js:53:16)<br>
     at Module._compile (module.js:373:25)<br>
     at Object.Module._extensions..js (module.js:416:10)<br>
     at Module.load (module.js:343:32)<br>
     at Function.Module._load (module.js:300:12)<br>
     at Module.require (module.js:353:17)<br>
     at require (internal/module.js:12:17)<br>
     at Object.<anonymous> (/usr/share/yarn/bin/yarn.js:24:13)<br>
     at Module._compile (module.js:409:26)<br>
     at Object.Module._extensions..js (module.js:416:10)<br>
<br>
See <a href="https://zuul.opendev.org/t/openstack/build" rel="noreferrer" target="_blank">https://zuul.opendev.org/t/openstack/build</a> <br>
/cdffd2a26a0d4a5b8137edb392fa5971<br>
<br>
This prevented the job from running (likely resulting in nothing being <br>
uploaded to NPM? Not a JS job specialist), which in turn prevented <br>
announce-release job from announcing it.<br>
<br>
-- <br>
Thierry Carrez (ttx)<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Hervé Beraud</div><div>Senior Software Engineer at Red Hat</div><div>irc: hberaud</div><div><a href="https://github.com/4383/" target="_blank">https://github.com/4383/</a></div><div><a href="https://twitter.com/4383hberaud" target="_blank">https://twitter.com/4383hberaud</a><br></div><div>-----BEGIN PGP SIGNATURE-----<br><br>wsFcBAABCAAQBQJb4AwCCRAHwXRBNkGNegAALSkQAHrotwCiL3VMwDR0vcja10Q+<br>Kf31yCutl5bAlS7tOKpPQ9XN4oC0ZSThyNNFVrg8ail0SczHXsC4rOrsPblgGRN+<br>RQLoCm2eO1AkB0ubCYLaq0XqSaO+Uk81QxAPkyPCEGT6SRxXr2lhADK0T86kBnMP<br>F8RvGolu3EFjlqCVgeOZaR51PqwUlEhZXZuuNKrWZXg/oRiY4811GmnvzmUhgK5G<br>5+f8mUg74hfjDbR2VhjTeaLKp0PhskjOIKY3vqHXofLuaqFDD+WrAy/NgDGvN22g<br>glGfj472T3xyHnUzM8ILgAGSghfzZF5Skj2qEeci9cB6K3Hm3osj+PbvfsXE/7Kw<br>m/xtm+FjnaywZEv54uCmVIzQsRIm1qJscu20Qw6Q0UiPpDFqD7O6tWSRKdX11UTZ<br>hwVQTMh9AKQDBEh2W9nnFi9kzSSNu4OQ1dRMcYHWfd9BEkccezxHwUM4Xyov5Fe0<br>qnbfzTB1tYkjU78loMWFaLa00ftSxP/DtQ//iYVyfVNfcCwfDszXLOqlkvGmY1/Y<br>F1ON0ONekDZkGJsDoS6QdiUSn8RZ2mHArGEWMV00EV5DCIbCXRvywXV43ckx8Z+3<br>B8qUJhBqJ8RS2F+vTs3DTaXqcktgJ4UkhYC2c1gImcPRyGrK9VY0sCT+1iA+wp/O<br>v6rDpkeNksZ9fFSyoY2o<br>=ECSj<br>-----END PGP SIGNATURE-----<br><br></div></div></div></div></div></div></div></div></div></div></div></div></div>