v14 is the latest lts. Let's use it.
Also - rename the jobs to make it clear what they're doing, and
add a dashboard job that points at opendev's multi-tenat api too.
There are new jobs that default to latest node LTS and auto-detect
yarn vs npm. Update to use them.
This reverts commit ca199eb9db.
This reverts commit 1082faae95.
This appears to remove the tarball publishing system that we rely on.
The existing code results in:
cp: omitting directory 'src/git.openstack.org/openstack-infra/zuul/zuul/web/static/t'
because it's picking up the t subdir when trying to copy everything.
Update it to be more smarter about which things to copy.
Also, add a shell variable to make the shell snipped easier to read.
We currently use symlink loops to allow the multi-tenant dashboard to
work properly. With the move to swift, that's gonna be no bueno. Just
copy the html/js files instead of symlink. There's not that many of them.
Since we got started in all of this angular business back in the good
old storyboard days of yore, the angular folks cut a major release
(ok, 5 major releases). The old v1 angular is known as angularjs now, and
starting at v2 the new codebase is just 'angular'. While angularjs is
still supported for now, angularjs vs. angular seems to be more like
zuulv2 vs. zuulv3 - the developers really want people to
be on the >=v2 series, and they spent a good deal of time fixing issues
from the original angularjs.
The notable differences are the angular is a bit more explicit/verbose,
and that it uses typescript instead of plain javscript. The increased
verbosity wasn't the most popular with some fans of the original angularjs,
but for those of us who aren't breathing it every day the verbosity is
There is a recommended code organization structure which has been used.
For zuul, there are notable changes to how the http client and location
service work, so the code related to those has been reworked.
$http has been reworked to use HttpClient - which defaults to grabbing
the remote json and which can do so in a typesafe way.
$location has been reworked to use the angular-routing module, which allows us
to pull both URL and Query String parameters in a structured manner. We
can similary pass query parameters to our output http requests.
Since routing is the new solution for $location, extract the navigation
bar into a re-usable component.
Add tslint config for the typescript. Keep running eslint on our
transitioned over. Use the angular tslint config as a base, but also
adopt the rule from standardjs that says to not use semicolons since
they are not actually needed.
The main.ejs file is a webpack template, not an angular template. Move
it to web/config with the other webpack files to make that clear.
Add a job that builds the zuul dashboard with the ZUUL_API_URL set to
point to software factory. This should allow us to see a live test with
a multi-tenant scheme.
Co-Authored-By: Tristan Cacqueray <firstname.lastname@example.org>
Co-Authored-By: Artem Goncharov <email@example.com>