Commit Graph

91 Commits

Author SHA1 Message Date
Thomas Lamprecht
bc248701f1 bump version to 8.41.0-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-08-30 11:42:24 +02:00
Stefan Sterz
79d6d3d106 switch to using Command.opts() to access options
this fixes an issue  where the options where not properly passed to
eslint, which rendered them useless. uses the `opts()` function to
access them. see [1] for more on info on option parsing with
commander.

[1]: https://www.npmjs.com/package/commander#user-content-options

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
2023-08-30 11:38:08 +02:00
Dominik Csapak
58b8a1a883 change binary name from 'eslint' to 'pve-eslint'
so that we don't conflict with 'eslint' package in debian, which ships
the same binary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-06-22 10:21:49 +02:00
Thomas Lamprecht
ffe585879b bump version to 8.41.0-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:15 +02:00
Thomas Lamprecht
994259780f d/control: define compat level via build-depends and raise to 13
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:15 +02:00
Thomas Lamprecht
be7b9a91c1 changelog: drop author from entries to avoid overly lengthy lines
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:15 +02:00
Dominik Csapak
68d61df000 bump version to 8.41.0-1
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-05-24 18:57:15 +02:00
Thomas Lamprecht
8d7bde1e26 d/source: override some false-positive lintian warning/errors
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:15 +02:00
Thomas Lamprecht
6fdc701038 buildsys: let dinstall target directly depend on $(DEB)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:05 +02:00
Thomas Lamprecht
ac8758299b buildsys: add sbuild target for convenience
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:05 +02:00
Thomas Lamprecht
d15ce1ffa4 buildsys: fix DSC target and set source format to 3.0 (quilt)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:05 +02:00
Thomas Lamprecht
730f4e5043 buildsys: fix build-dir generation target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:57:05 +02:00
Thomas Lamprecht
99671ec811 buildsys: rework downloading and vendoring upstream
try to ensure that a clean dependency/prerequisites chain exists

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:51:55 +02:00
Dominik Csapak
97f46045cb buildsys: derive upload dist automatically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 18:51:55 +02:00
Dominik Csapak
e2ba640b95 buildsys: prepare builddir atomically
so an aborted build has no artifacts left over

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-05-24 18:51:55 +02:00
Dominik Csapak
a21dc3898b buildsys: switch to regular parenthesis
for consistency and ease of use with QWERTZ layouts

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-05-24 18:51:55 +02:00
Dominik Csapak
6d6b6a34f8 commit build of 8.41.0
and update make 'buildupstream' make target to work again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-05-24 18:51:55 +02:00
Dominik Csapak
f2a92ac62f import 8.41.0 source
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-05-24 18:51:55 +02:00
Fabian Grünbichler
28ff354db0 build: add missing dh-nodejs to build-dependencies
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-20 09:26:28 +01:00
Thomas Lamprecht
44f2865898 d/scripts/prepare-changes: make argument check more robust
set -u aborts if we access any undefined variable, which $1 can be if
no argument got passed..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-15 11:46:30 +02:00
Dominik Csapak
857347d600 bump version to 8.23.1-1
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-09-15 11:35:52 +02:00
Dominik Csapak
192ad3e2a8 commit build of 8.23.1
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-09-15 11:35:52 +02:00
Dominik Csapak
d1e45ca9db fix eslint warnings/errors for own sources
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-09-15 11:35:40 +02:00
Dominik Csapak
7579a6928f adapt webkpack patch for 8.23.1
we have to remove the (unnecessary) polyfill plugin, because some
transitive dependency (nodelib/fs.scandir) tries to access node specific
information that is stripped with these (browser targeting) polyfills

it's not necessary as we're targeting node anyway

also update the patch message to reflect the actual changes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-09-15 11:33:56 +02:00
Dominik Csapak
8f9d1d4df0 import 8.23.1 source
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-09-15 11:13:41 +02:00
Thomas Lamprecht
0a9df8d6a9 bump version to 8.4.0-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-26 11:11:47 +02:00
Thomas Lamprecht
931088d3e5 switch to es2021
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-26 11:08:39 +02:00
Thomas Lamprecht
5f14e37f3d bump version to 8.4.0-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-10 13:18:19 +01:00
Dominik Csapak
dd99a1694d repair '--fix' option
when changing to ESLint from CLIEgnine, i forgot to change
the outputFixes call. It's now async and takes a list of results.

fixes 7a730cb601

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-10 13:17:49 +01:00
Thomas Lamprecht
69748fae3d buildsys: change upload product to devel
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-06 14:29:14 +01:00
Thomas Lamprecht
c42991b8b2 bump version to 8.4.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-06 14:14:29 +01:00
Thomas Lamprecht
604f8c2abf d/scripts: trim build and jenkins too
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-06 14:14:27 +01:00
Thomas Lamprecht
72308890e3 d/scripts: make changes trimmer case insensitive
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-06 14:09:24 +01:00
Thomas Lamprecht
66999ef37c commit build of 8.4.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-06 14:06:04 +01:00
Thomas Lamprecht
34eeec05c4 import 8.4.0 source
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-06 14:02:55 +01:00
Dominik Csapak
7a730cb601 change from CLIEngine to ESLint
8.0 officialy removed CLIEngine (though it's still in git) so use
the current and supported API.

Necessary changes:
* use 'ESLint' instead of 'CLIEngine'
* use 'lintFiles' instead of 'executeOnFiles' (thats async now)
* adapt to the change of return value of 'lintFiles'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-06 13:58:25 +01:00
Thomas Lamprecht
be7da736f9 bump version to 8.3.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-01 13:44:44 +01:00
Thomas Lamprecht
4900068a79 fixup! import 8.3.0 source 2021-12-01 13:44:30 +01:00
Thomas Lamprecht
86d4afdb4b commit build of 8.3.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-01 13:44:18 +01:00
Thomas Lamprecht
609c276fc2 import 8.3.0 source
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-01 13:39:06 +01:00
Thomas Lamprecht
16b19c7b65 build upstream to umd
as we want to avoid requiring npm et al for every build, this is also
effectively vendoring all in, so easier to avoid supply-chain attacks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-08-30 12:54:34 +02:00
Dominik Csapak
aa1e5f5ecd use worker_threads for linting
instead linting all files in the main thread, use worker threads
for that (4 by default) and add the '-t' switch to able to control that

a basic benchmark of eslint of pve-manager showed some performance
gains:

Benchmark #1: Current
  Time (mean ± σ):      6.468 s ±  0.116 s    [User: 9.803 s, System: 0.333 s]
  Range (min … max):    6.264 s …  6.647 s    10 runs

Benchmark #2: 2Threads
  Time (mean ± σ):      4.509 s ±  0.106 s    [User: 12.706 s, System: 0.530 s]
  Range (min … max):    4.335 s …  4.674 s    10 runs

Benchmark #3: 4Threads
  Time (mean ± σ):      3.471 s ±  0.033 s    [User: 16.390 s, System: 0.630 s]
  Range (min … max):    3.431 s …  3.542 s    10 runs

Benchmark #4: 8Threads
  Time (mean ± σ):      2.880 s ±  0.044 s    [User: 22.454 s, System: 0.938 s]
  Range (min … max):    2.813 s …  2.964 s    10 runs

Summary
  '8Threads' ran
    1.21 ± 0.02 times faster than '4Threads'
    1.57 ± 0.04 times faster than '2Threads'
    2.25 ± 0.05 times faster than 'Current'

after 8 threads, there were no real performance benefits since the
overhead to load the module seems to be the biggest factor.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-07-19 12:22:13 +02:00
Dominik Csapak
39179db1a8 remove unnecessary eslint.js
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-07-19 12:12:46 +02:00
Dominik Csapak
4b0098f62a ship proper nodejs module 'pve-eslint'
instead of concatenating the eslint module into our app.js, ship
a 'pve-eslint' module that exports the built eslint module

to do this, we have to leave the module type on 'umd' instead of
changing to 'var' so that nodejs can properly import it.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-07-19 12:12:46 +02:00
Thomas Lamprecht
ef0a5638b0 bump version to 7.28.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-09 16:40:31 +02:00
Dominik Csapak
0803a17d52 set cwd of CLIEngine to process.cwd()
it seems it now defaults to '/' as the current working dir, but we
assume the cwd of the process

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-06-09 16:36:27 +02:00
Thomas Lamprecht
35543d16f3 switch to es2020 for bullseyse
at least in theory this should be enough

https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-09 11:05:52 +02:00
Thomas Lamprecht
d960db16da actually build upstream release 7.28.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-09 11:05:28 +02:00
Thomas Lamprecht
5422a9ccba import eslint 7.28.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-08 11:43:11 +02:00
Thomas Lamprecht
61dc968b37 buildsys: change upload dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-08 11:39:08 +02:00