Building DEB failed without pipeline error
I was irritated about missing files in the develop instance;
root@dev-thekno:/usr/share/thekno/html# dpkg -L thekno
/.
/etc
/etc/nginx
/etc/nginx/snippets
/etc/nginx/snippets/thekno-spa.conf
/usr
/usr/share
/usr/share/doc
/usr/share/doc/thekno
/usr/share/doc/thekno/README.md.gz
/usr/share/doc/thekno/changelog.Debian.gz
/usr/share/doc/thekno/copyright
/usr/share/doc/thekno/environment-configuration.md.gz
/usr/share/doc/thekno/examples
/usr/share/doc/thekno/examples/nginx-defaultsite.conf
/usr/share/doc/thekno/examples/thekno-env.json
/usr/share/thekno
/usr/share/thekno/html
/usr/share/thekno/html/legacy-report.html
root@dev-thekno:/usr/share/thekno/html#
First I supposed an error in the CI, so I triggered a some branches a bit.
Since 014bca19 the generated DEB Packages are missing most of the files. See https://git.hack-hro.de/lohro/lohrothek/thekno/-/jobs/4354#L211. I copied a large part below.
@kmohrf: I think the job should fail in this cases, but he ended successfully. Is there an option to fail and exit in this cases?
@marvindv: You should fix this source of error :) See #34 (closed)
node_modules/.bin/raml2html --validate --theme "raml2html-werk-theme" -o "build/docs/content-api.html" --no-bundle-assets "docs/apis/content-api.raml"
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
> thekno@1.1.1 build /builds/lohro/lohrothek/thekno
> VUE_APP_VERSION=$(git describe --tags 2>/dev/null || git rev-parse --short HEAD) vue-cli-service build --modern --report
- Building legacy bundle for production...
mkdir -p "build/docs/"
node_modules/.bin/raml2html --validate --theme "raml2html-werk-theme" -o "build/docs/track-service-api.html" --no-bundle-assets "docs/apis/track-service-api.raml"
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
ERROR Failed to compile with 1 errors10:12:01 PM
error in ./src/components/BroadcastsDay.vue
Module Error (from ./node_modules/eslint-loader/index.js):
error: Unexpected console statement (no-console) at src/components/BroadcastsDay.vue:133:11:
131 | this.hasError = false
132 | } catch (err) {
> 133 | console.error(err)
| ^
134 | this.hasError = true
135 | } finally {
136 | this.isLoading = false
1 error found.
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/HomePage.vue?vue&type=script&lang=js& 77:0-56 86:19-32
@ ./src/views/HomePage.vue?vue&type=script&lang=js&
@ ./src/views/HomePage.vue
@ ./src/router.js
@ ./src/main.js
@ multi ./src/main.js
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/about-legacy.9c454a70.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/app-legacy.5acc04a1.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/chunk-2d21d15f-legacy.0aa837ef.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/chunk-vendors-legacy.56fd175c.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/home-legacy.d278f63a.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/profile-legacy.864f2209.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/queue-legacy.11f57064.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/recording-legacy.98a0dfa5.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/search-legacy.21443648.js": no such file
Error parsing bundle asset "/builds/lohro/lohrothek/thekno/build/dist/js/series-legacy.14750c29.js": no such file
No bundles were parsed. Analyzer will show only original module sizes from stats file.
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! thekno@1.1.1 build: `VUE_APP_VERSION=$(git describe --tags 2>/dev/null || git rev-parse --short HEAD) vue-cli-service build --modern --report`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the thekno@1.1.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-18T22_12_01_779Z-debug.log
(cd "build/dist" && find -type f) | while read -r asset; do \
install -D "build/dist/$asset" "/builds/lohro/lohrothek/thekno/debian/thekno/usr/share/thekno/html/$asset"; \
done
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/builds/lohro/lohrothek/thekno'
make[2]: Leaving directory '/builds/lohro/lohrothek/thekno'