@noldova/tools.pipelines 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -8
- package/api/index.d.ts +141 -22
- package/api/index.js +1 -0
- package/api/index.js.map +1 -1
- package/models/build-config.js +7 -2
- package/models/build-config.js.map +1 -1
- package/models/build-package.js +3 -3
- package/models/build-package.js.map +1 -1
- package/models/handled-failure.js +18 -0
- package/models/handled-failure.js.map +1 -0
- package/models/version.js +3 -0
- package/models/version.js.map +1 -1
- package/package.json +4 -4
- package/resources.js +86 -8
- package/resources.js.map +1 -1
- package/services/archive-step.js +23 -10
- package/services/archive-step.js.map +1 -1
- package/services/build-step.js +13 -14
- package/services/build-step.js.map +1 -1
- package/services/coverage-entry-point.js +7 -14
- package/services/coverage-entry-point.js.map +1 -1
- package/services/dependent-relock.js +43 -21
- package/services/dependent-relock.js.map +1 -1
- package/services/dependents-step.js +16 -6
- package/services/dependents-step.js.map +1 -1
- package/services/git.js +2 -2
- package/services/git.js.map +1 -1
- package/services/installed-step.js +11 -10
- package/services/installed-step.js.map +1 -1
- package/services/line-endings-step.js +1 -1
- package/services/line-endings-step.js.map +1 -1
- package/services/pins-step.js +8 -7
- package/services/pins-step.js.map +1 -1
- package/services/process-runner.js +1 -1
- package/services/process-runner.js.map +1 -1
- package/services/prune-step.js +2 -1
- package/services/prune-step.js.map +1 -1
- package/services/publish-step.js +17 -1
- package/services/publish-step.js.map +1 -1
- package/services/relock-step.js +3 -2
- package/services/relock-step.js.map +1 -1
- package/services/test-step.js +21 -3
- package/services/test-step.js.map +1 -1
- package/services/test-times-entry-point.js +61 -0
- package/services/test-times-entry-point.js.map +1 -0
- package/services/testing-module-loader.js +31 -0
- package/services/testing-module-loader.js.map +1 -0
- package/services/timing-step.js +76 -0
- package/services/timing-step.js.map +1 -0
- package/services/type-script.js +6 -3
- package/services/type-script.js.map +1 -1
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ It succeeds only when:
|
|
|
75
75
|
- the version is a version, the commit is its full id, and the scope is `@` and a lowercase name, such as `@noldova`;
|
|
76
76
|
- the checkout is at the commit;
|
|
77
77
|
- the folder holds one archive for each package at the version, named as `npm pack` names it, such as `noldova-tools.pipelines-0.0.4.tgz`, and nothing else;
|
|
78
|
-
- each archive's `package/package.json` has the package's name, inside the scope, the version, and the commit as its `gitHead`, isn't `"private": true`, has a `license`,
|
|
78
|
+
- each archive's `package/package.json` has the package's name, inside the scope, the version, and the commit as its `gitHead`, isn't `"private": true`, has a `license`, lists any other expected package under `dependencies` at exactly the version, and lists any under `peerDependencies` in the range from the version to the next minor one, such as `>=0.0.9 <0.1.0`, as a package that takes its siblings as peers names them;
|
|
79
79
|
- each archive holds `package/LICENSE`, and no file of a kind that holds credentials: `.npmrc`, `.netrc`, `.env` or `.env.<name>`, `id_rsa`, `id_dsa`, `id_ecdsa`, `id_ed25519`, or a name ending in `.pem`, `.key`, `.p12` or `.pfx`, such as `.key` itself, in any folder and whatever its case;
|
|
80
80
|
- each archive holds every file the build copies into its package, as a file with the same bytes as its source, and neither the copy nor its source is a symbolic link or under one.
|
|
81
81
|
|
|
@@ -102,7 +102,7 @@ A wrong value, a checkout at another commit or a missing folder fails with that
|
|
|
102
102
|
Otherwise the step fails with one line for each problem it finds with the archives, such as `archives has no noldova-tools.pipelines-0.0.4.tgz.` or `noldova-tools.pipelines-0.0.4.tgz: its version is 0.0.3, not 0.0.4.`
|
|
103
103
|
It reads each manifest and lists each archive's files with the `tar` program, which must be on the `PATH`; an archive `tar` can't read or list is one of those lines, with `tar`'s exit code and message.
|
|
104
104
|
When the archives pass, the step checks the copies, extracting each archive with `tar` into a new temporary folder that it removes after, and adds one line, such as `Each of the 2 files the build copies in matches its source.`; it fails with npm's exit code and message when the build can't list its copies, and when its output doesn't end with `end of copies`; otherwise with one line for each copy the build lists that isn't three fields, has a path that isn't inside its folder or a package without an archive, a source that is a symbolic link or under one or isn't a file, an archive `tar` can't extract, and a copy an archive lacks, holds as a symbolic link, under one or as a folder, or holds with other bytes.
|
|
105
|
-
A `package.json`, in an archive or under `src/`, makes the step throw `JsonException` if it isn't a JSON object, lacks a `name` or `version` text where the step needs one, has a `gitHead` or a `license` that isn't a text, or has a `private` that isn't `true` or `false` or `dependencies` that aren't an object of texts.
|
|
105
|
+
A `package.json`, in an archive or under `src/`, makes the step throw `JsonException` if it isn't a JSON object, lacks a `name` or `version` text where the step needs one, has a `gitHead` or a `license` that isn't a text, or has a `private` that isn't `true` or `false` or `dependencies` or `peerDependencies` that aren't an object of texts.
|
|
106
106
|
|
|
107
107
|
### The publish step
|
|
108
108
|
|
|
@@ -130,7 +130,7 @@ The step:
|
|
|
130
130
|
|
|
131
131
|
1. runs the archive step's checks, except the build's copies, and fails with their message when they fail;
|
|
132
132
|
2. asks the registry about each package, and fails, publishing nothing, with one line for each version it already has from another archive and each version that isn't newer than the version a tag it must pass points to; a version it already has from the same archive is skipped;
|
|
133
|
-
3. publishes the rest in turn, and stops at the first publish that fails;
|
|
133
|
+
3. publishes the rest in turn, and stops at the first publish that fails, whose line leaves out the archive's file listing, npm's `npm notice` lines from `Tarball Contents` through `total files`, and its empty `npm notice` lines, so that npm's error shows within an annotation's length, while its other notices stay;
|
|
134
134
|
4. waits until the registry serves each version it published with the same archive, up to 10 minutes, asking every 10 seconds, also after a failed publish, so a rerun skips the versions already published.
|
|
135
135
|
|
|
136
136
|
It succeeds with one line for each package, such as `@noldova/tools.pipelines@0.0.4 published.`, and otherwise fails with one line for each problem.
|
|
@@ -303,7 +303,9 @@ result.message; // "Looked for exact pins of @noldova/a, @noldova/b older than 0
|
|
|
303
303
|
- A lock folder whose `package.json` pins exactly a package one of the repository's own tracked `package.json` files names, while its lock holds no entry for it, as when the repository locks its own unpublished packages from its built archives, is relocked without asking a registry for that package: it, and each own package its manifest reaches by dependency or optional dependency, resolves from a stand-in archive that holds only a manifest with the tracked manifest's dependencies and optional dependencies on other packages and no peers, so npm installs no peer for an own package, as a lock made with `--legacy-peer-deps` holds none, which the folder's `package.json` names while npm runs and gives back after; the lock then leaves out every entry at or under an own package, and its root entry keeps the folder's pins, and the pull request names each such lock file. When more than one tracked `package.json` names such a package, or when that relock drops an entry the old lock marks as a peer and no moved package's locked entry names, as when the repository locks its own packages with their peers, it leaves the repository as it is and names them, without failing it.
|
|
304
304
|
- After, it leaves the repository as it is, without chasing further, when a relocked lock file still holds a package whose exact peer differs from the version it locks, and names each.
|
|
305
305
|
- When it moved any, it relocks every tracked `package-lock.json`: it removes from the file the entries of the moved packages, the entries nested under them and the entries that depend on them, by dependency, optional dependency or peer, keeps every other entry at its locked version unless a package npm resolves again needs it to change, and lets `npm install --package-lock-only --ignore-scripts` resolve what it removed, so a package the old lock keeps at an older version, with that version's exact peers, can't hold the moved pins back; it runs without the host's credential variables and, on Linux and macOS, stops an npm run longer than 5 minutes, which fails that repository; it then commits, pushes the branch `pipelines/update-<source>` and proposes it with the moved pins and the release's notes; a repository that pins none is left as it is.
|
|
306
|
+
- A module's manifest names other modules by id: when the commit releases modules, by the `id` of each `module.json` under `src/` outside `tests/` folders, it moves in each tracked `module.json` every entry of `dependencies` and `optionalDependencies` that names one of them at an exact version older than the release, and lists each move in the description as it lists the pins; a range and a newer or equal version stay. It does so only in a repository whose `package.json` pins moved, whether it relocked the repository or the repository relocked itself.
|
|
306
307
|
- When the branch exists, it replaces it only while the branch is at a commit of its own, with its title and the same committer; a branch with anyone else's commit is left as it is, and that repository fails, so nobody's work is lost.
|
|
308
|
+
- A repository that moved any pins fails, before it relocks, when a tracked `package.json` doesn't hold a JSON object, or a tracked `package-lock.json` has no tracked `package.json` beside it.
|
|
307
309
|
- It succeeds with one line for each repository, and fails, after trying every other repository, with the line of each that failed; an error in one repository, such as git failing, is that repository's line.
|
|
308
310
|
- Given an output, it writes each repository's line there instead, as a success or a failure, as soon as that repository is done, so a run stopped partway still shows the repositories it finished; its result's message is then only the summary.
|
|
309
311
|
- It removes its temporary folder whether it succeeds or fails, and makes it in the root its constructor is given, or in `os.tmpdir()`.
|
|
@@ -327,7 +329,7 @@ result.message; // "noldova-com/example: moved 2 pins and wrote the 4 files that
|
|
|
327
329
|
|
|
328
330
|
- `<repository>` is the dependent's full name, which starts each line; `<request>` is the release as the dependents step sends it.
|
|
329
331
|
- Each `<lock file>=<npm script>` relocks that tracked lock file with `npm run <npm script>` at the checkout's root instead, after its moved entries are removed as above and every other lock file is relocked, for a lock the repository makes its own way, such as one that takes the repository's own packages from its build; such a lock skips the stand-in archives. A script name is letters, digits and `:`, `.`, `_` and `-`; a lock file named twice, or a value without both parts, fails the step before it changes anything, and so does a wrong number of values.
|
|
330
|
-
- The result file holds JSON: the repository's line and whether it succeeded, when the repository is left as it is or fails, or the checkout's head commit, the moved pins, the lock lines and the text of each tracked `package.json` and `package-lock.json` that changed. A lock script for a lock file the repository doesn't track, a failed lock or script run, and an error, such as npm failing, are a failed line in the file, and a failed script's line carries its standard error, or the last 10 lines of its standard output when standard error is empty; the step itself still succeeds, so the release's dependents step reports them.
|
|
332
|
+
- The result file holds JSON: the repository's line and whether it succeeded, when the repository is left as it is or fails, or the checkout's head commit, the moved pins, the lock lines and the text of each tracked `package.json` and `package-lock.json` that changed. A lock script for a lock file the repository doesn't track, a tracked `package.json` that doesn't hold a JSON object, a lock file no script relocks with no tracked `package.json` beside it, a failed lock or script run, and an error, such as npm failing, are a failed line in the file, and a failed script's line carries its standard error, or the last 10 lines of its standard output when standard error is empty; the step itself still succeeds, so the release's dependents step reports them.
|
|
331
333
|
|
|
332
334
|
### The pins step
|
|
333
335
|
|
|
@@ -355,12 +357,13 @@ The declaration file `api/index.d.ts` documents every member with its contract a
|
|
|
355
357
|
|
|
356
358
|
### Building and testing a repository
|
|
357
359
|
|
|
358
|
-
The `installed`, `build` and `
|
|
360
|
+
The `installed`, `build`, `test` and `timing` steps build, pack, test and time the packages of a repository, so every repository runs the same build.
|
|
359
361
|
A repository lists its packages, in the order they build, in `build.json` at its root:
|
|
360
362
|
|
|
361
363
|
```json
|
|
362
364
|
{
|
|
363
365
|
"scope": "@noldova",
|
|
366
|
+
"testTimeoutMilliseconds": 30000,
|
|
364
367
|
"packages": [
|
|
365
368
|
{ "name": "noldova.example" },
|
|
366
369
|
{ "name": "noldova.example.parsers", "path": "parsers/noldova.example.parsers", "pre": "src/parsers/noldova.example.parsers/scripts/verify.ts" }
|
|
@@ -369,6 +372,7 @@ A repository lists its packages, in the order they build, in `build.json` at its
|
|
|
369
372
|
```
|
|
370
373
|
|
|
371
374
|
- `scope` is the npm scope the packages publish under, `@noldova` when omitted.
|
|
375
|
+
- `testTimeoutMilliseconds` is the suite's hang limit, a positive whole number of milliseconds, which the `test` and `timing` steps require: at least three times the slowest test on any target, as the test step's slowest tests show it in the repository's runs, with that measurement in its README's Checks. A test that reaches it fails, named with what it waited for.
|
|
372
376
|
- `name` is the package's folder name: `noldova.` and segments of lowercase letters and digits joined by dots, with no hyphen, so a several-word segment joins its words with nothing between them, such as `noldova.example.filewatcher`; the package's npm name is the scope, `/` and the name after `noldova.`, such as `@noldova/example`.
|
|
373
377
|
- `path` is the package's folder under `src/`, whose last segment is the name; it is the name when omitted.
|
|
374
378
|
- `pre`, `compile` and `post` are optional scripts, paths inside the checkout that Node.js runs with the package's source folder and build folder as its values: `pre` before the compile, `compile` instead of the TypeScript compile, and `post` after it.
|
|
@@ -380,7 +384,8 @@ A repository's `package.json` runs the steps through the package's `pipelines` c
|
|
|
380
384
|
```json
|
|
381
385
|
"scripts": {
|
|
382
386
|
"build": "(pipelines installed || npm ci --ignore-scripts) && pipelines build",
|
|
383
|
-
"test": "pipelines test"
|
|
387
|
+
"test": "pipelines test",
|
|
388
|
+
"test:timing": "pipelines timing"
|
|
384
389
|
}
|
|
385
390
|
```
|
|
386
391
|
|
|
@@ -410,13 +415,22 @@ It backs up `package.json` and `package-lock.json` in `_build/restore/` before i
|
|
|
410
415
|
|
|
411
416
|
#### The test step
|
|
412
417
|
|
|
413
|
-
`test [--skip-test-details] [--skip-coverage-details] [<filter>...]` compiles each package's `tests/tsconfig.json`, runs the tests through the repository's `@noldova/context.testing` with V8 coverage in `_build/coverage`, and requires complete coverage of the packages' `src/` folders.
|
|
418
|
+
`test [--skip-test-details] [--skip-coverage-details] [<filter>...]` compiles each package's `tests/tsconfig.json`, runs the tests through the repository's `@noldova/context.testing` under `build.json`'s `testTimeoutMilliseconds`, with V8 coverage in `_build/coverage`, and requires complete coverage of the packages' `src/` folders.
|
|
419
|
+
The run writes each test's time to `_build/test-results.json`, and the step then prints the 10 slowest tests with their times, with or without `--skip-test-details`, and fails when it can't read them.
|
|
414
420
|
It writes `Compiling the tests of <package>...` for each, and ends the line with ` Done.`, or ` Failed.` before the compiler's errors.
|
|
415
421
|
|
|
416
422
|
- Run the build first: the tests use the installed packages.
|
|
417
423
|
- A filter runs the tests that match a package, file, class, `ClassName.methodName` substring or exact `category:name` identity, and skips the coverage gate.
|
|
418
424
|
- `--skip-test-details` hides the passing tests' lines and `--skip-coverage-details` the fully covered files' rows; failures and totals always show.
|
|
419
|
-
- The tests and the coverage report each run in a Node.js process of their own, so the repository's packages never load beside the step's.
|
|
425
|
+
- The tests, their times and the coverage report each run in a Node.js process of their own, so the repository's packages never load beside the step's.
|
|
426
|
+
|
|
427
|
+
#### The timing step
|
|
428
|
+
|
|
429
|
+
`timing` checks the test times, apart from the test step since its pass condition is a time, so it runs on a test machine rather than in CI.
|
|
430
|
+
Run it after the test step, which compiles the tests: it runs them three times without coverage, writes `Timing run <n> of 3...` for each, and judges each test file's time, the sum of its tests' durations, through the repository's `@noldova/context.testing`.
|
|
431
|
+
It fails a file whose median over the runs is over 2 seconds plus a margin of 50%, since a busy machine slows every file and the median of three runs drops one slow run but not a slower machine.
|
|
432
|
+
A file slower than that budget is listed in the repository's README, after the line `Test files slower than the timing check's budget:`, as a table row such as ``| `noldova.example/services/a.test.js` | 6900 ms |``; its median may exceed its own time by the same margin, and a listed file within the budget is named as stale, failing nothing.
|
|
433
|
+
A file over its time fails the step with `A test file is over its time.`; a run's times file that is missing or isn't test times, as from a `@noldova/context.testing` before 0.0.8, which writes none, fails it with `The test times were not read: …`, after the report has named the file.
|
|
420
434
|
|
|
421
435
|
## License
|
|
422
436
|
|
package/api/index.d.ts
CHANGED
|
@@ -262,6 +262,22 @@ export declare class Version {
|
|
|
262
262
|
*/
|
|
263
263
|
public equals(other: Version): boolean;
|
|
264
264
|
|
|
265
|
+
/**
|
|
266
|
+
* Gives the first release of the next minor version, the upper bound of a
|
|
267
|
+
* sibling package's peer range.
|
|
268
|
+
*
|
|
269
|
+
* @returns The version with the minor part one higher, the patch part 0
|
|
270
|
+
* and no nightly date.
|
|
271
|
+
* @example
|
|
272
|
+
* ```ts
|
|
273
|
+
* import { Version } from "@noldova/tools.pipelines";
|
|
274
|
+
*
|
|
275
|
+
* Version.parse("0.0.9").nextMinor().toString(); // "0.1.0"
|
|
276
|
+
* Version.parse("1.4.1-nightly.20261101").nextMinor().toString(); // "1.5.0"
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
public nextMinor(): Version;
|
|
280
|
+
|
|
265
281
|
/**
|
|
266
282
|
* Writes the version as its text.
|
|
267
283
|
*
|
|
@@ -594,11 +610,19 @@ export declare class BuildConfig {
|
|
|
594
610
|
*/
|
|
595
611
|
public readonly packages: readonly BuildPackage[];
|
|
596
612
|
|
|
613
|
+
/**
|
|
614
|
+
* The suite's hang limit in milliseconds, `build.json`'s
|
|
615
|
+
* `testTimeoutMilliseconds`, which {@link TestStep} and
|
|
616
|
+
* {@link TimingStep} require; undefined when the file sets none.
|
|
617
|
+
*/
|
|
618
|
+
public readonly testTimeoutMilliseconds: number | undefined;
|
|
619
|
+
|
|
597
620
|
/**
|
|
598
621
|
* Creates the configuration.
|
|
599
622
|
*
|
|
600
623
|
* @param scope The npm scope the packages publish under.
|
|
601
624
|
* @param packages The packages, in build order.
|
|
625
|
+
* @param testTimeoutMilliseconds The suite's hang limit in milliseconds, left out for none.
|
|
602
626
|
* @example
|
|
603
627
|
* ```ts
|
|
604
628
|
* import { BuildConfig, BuildPackage } from "@noldova/tools.pipelines";
|
|
@@ -606,7 +630,7 @@ export declare class BuildConfig {
|
|
|
606
630
|
* const config = new BuildConfig("@noldova", [new BuildPackage("noldova.tools.pipelines")]);
|
|
607
631
|
* ```
|
|
608
632
|
*/
|
|
609
|
-
public constructor(scope: string, packages: readonly BuildPackage[]);
|
|
633
|
+
public constructor(scope: string, packages: readonly BuildPackage[], testTimeoutMilliseconds?: number);
|
|
610
634
|
|
|
611
635
|
/**
|
|
612
636
|
* The packages' npm names, such as `@noldova/tools.pipelines`.
|
|
@@ -619,9 +643,9 @@ export declare class BuildConfig {
|
|
|
619
643
|
* @param directory The checkout's root.
|
|
620
644
|
* @returns The configuration.
|
|
621
645
|
* @throws {@link BuildException} when the file is missing or names a scope
|
|
622
|
-
* that is not an npm scope, no package, a package twice, a name that is not a package folder name,
|
|
623
|
-
* path or a script outside the checkout; `JsonException` from
|
|
624
|
-
* `@noldova/context.json` when it is not JSON or
|
|
646
|
+
* that is not an npm scope, no package, a package twice, a name that is not a package folder name, a
|
|
647
|
+
* path or a script outside the checkout, or a `testTimeoutMilliseconds` that is not positive; `JsonException` from
|
|
648
|
+
* `@noldova/context.json` when it is not JSON, lacks a field, or has a `testTimeoutMilliseconds` that is not an integer.
|
|
625
649
|
* @example
|
|
626
650
|
* ```ts
|
|
627
651
|
* import { BuildConfig } from "@noldova/tools.pipelines";
|
|
@@ -637,9 +661,9 @@ export declare class BuildConfig {
|
|
|
637
661
|
* @param text The file's text.
|
|
638
662
|
* @returns The configuration.
|
|
639
663
|
* @throws {@link BuildException} when the text names a scope that is not
|
|
640
|
-
* an npm scope, no package, a package twice, a name that is not a package folder name,
|
|
641
|
-
* script outside the checkout; `JsonException` from
|
|
642
|
-
* `@noldova/context.json` when it is not JSON or
|
|
664
|
+
* an npm scope, no package, a package twice, a name that is not a package folder name, a path or a
|
|
665
|
+
* script outside the checkout, or a `testTimeoutMilliseconds` that is not positive; `JsonException` from
|
|
666
|
+
* `@noldova/context.json` when it is not JSON, lacks a field, or has a `testTimeoutMilliseconds` that is not an integer.
|
|
643
667
|
* @example
|
|
644
668
|
* ```ts
|
|
645
669
|
* import { BuildConfig } from "@noldova/tools.pipelines";
|
|
@@ -1935,8 +1959,10 @@ export declare class SourceStep implements IStep {
|
|
|
1935
1959
|
* the commit, and the folder holds exactly one archive for each package at
|
|
1936
1960
|
* the version, named as `npm pack` names it, whose `package/package.json`
|
|
1937
1961
|
* has the package's name, inside the scope, the version, and the commit as
|
|
1938
|
-
* its `gitHead`, is not `"private": true`, has a `license`,
|
|
1939
|
-
*
|
|
1962
|
+
* its `gitHead`, is not `"private": true`, has a `license`, lists any
|
|
1963
|
+
* expected package under `dependencies` at exactly the version, and lists any
|
|
1964
|
+
* under `peerDependencies` in the range from the version to the next minor
|
|
1965
|
+
* one, such as `>=0.0.9 <0.1.0`. Each archive must also hold `package/LICENSE`, and no
|
|
1940
1966
|
* file of a kind that holds credentials: `.npmrc`, `.netrc`, `.env` or
|
|
1941
1967
|
* `.env.<name>`, `id_rsa`, `id_dsa`, `id_ecdsa`, `id_ed25519`, or a name
|
|
1942
1968
|
* ending in `.pem`, `.key`, `.p12` or `.pfx`, such as `.key` itself, in any
|
|
@@ -1994,8 +2020,9 @@ export declare class ArchiveStep implements IStep {
|
|
|
1994
2020
|
* `tar` cannot read the manifest of, with `tar`'s exit code and message,
|
|
1995
2021
|
* and a manifest with another name, a name outside the scope, another
|
|
1996
2022
|
* version, no `gitHead` or another one, `"private": true`, no `license`
|
|
1997
|
-
* or an empty one,
|
|
1998
|
-
* at anything but exactly the version,
|
|
2023
|
+
* or an empty one, an expected package under `dependencies`
|
|
2024
|
+
* at anything but exactly the version, or one under `peerDependencies` in
|
|
2025
|
+
* any range but `>=<version> <next minor>`, an archive `tar` cannot list the
|
|
1999
2026
|
* files of, with `tar`'s exit code and message, a file of a kind that holds
|
|
2000
2027
|
* credentials, and no `package/LICENSE`. When the archives pass, it asks
|
|
2001
2028
|
* the build for its copies and adds a line, such as
|
|
@@ -2090,6 +2117,27 @@ export declare class ArchiveStep implements IStep {
|
|
|
2090
2117
|
* ```
|
|
2091
2118
|
*/
|
|
2092
2119
|
public readPackageManifestsAsync(commit: string): Promise<readonly JsonReader[]>;
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* Reads the ids of the modules a commit releases: the `id` of each
|
|
2123
|
+
* `module.json` file under `src/`, outside `tests/` folders.
|
|
2124
|
+
*
|
|
2125
|
+
* @param commit The commit's full id.
|
|
2126
|
+
* @returns A promise of the ids, sorted, and empty when there is none. It
|
|
2127
|
+
* rejects with `JsonException` when a `module.json` is not a JSON object
|
|
2128
|
+
* with an `id` text, and with {@link ProcessException} as
|
|
2129
|
+
* {@link ArchiveStep.runAsync} does.
|
|
2130
|
+
* @example
|
|
2131
|
+
* ```ts
|
|
2132
|
+
* import { ArchiveStep, Git, Npm, ProcessRunner, Tar } from "@noldova/tools.pipelines";
|
|
2133
|
+
*
|
|
2134
|
+
* const processRunner = new ProcessRunner();
|
|
2135
|
+
* const step = new ArchiveStep(new Git(processRunner, process.cwd()), new Tar(processRunner), new Npm(processRunner, process.cwd()));
|
|
2136
|
+
* const ids = await step.readModuleIdsAsync("225059f4c1e6a3b2d8f7e9a0b1c2d3e4f5a6b7c8");
|
|
2137
|
+
* ids; // ["example"]
|
|
2138
|
+
* ```
|
|
2139
|
+
*/
|
|
2140
|
+
public readModuleIdsAsync(commit: string): Promise<readonly string[]>;
|
|
2093
2141
|
}
|
|
2094
2142
|
|
|
2095
2143
|
/**
|
|
@@ -2154,7 +2202,9 @@ export declare class PublishStep implements IStep {
|
|
|
2154
2202
|
* After that, it publishes the archives in turn and stops at the first
|
|
2155
2203
|
* publish that fails; it still waits for the versions it published before
|
|
2156
2204
|
* it, and fails with a line for that publish, with `npm`'s exit code and
|
|
2157
|
-
* message
|
|
2205
|
+
* message without the archive's file listing, its `npm notice` lines from
|
|
2206
|
+
* `Tarball Contents` through `total files`, or its empty `npm notice`
|
|
2207
|
+
* lines, and for each version the registry does not serve in time or
|
|
2158
2208
|
* serves from another archive. A URL's credentials, query and fragment in
|
|
2159
2209
|
* `npm`'s message are left out of the line. It rejects as {@link ArchiveStep.runAsync} does,
|
|
2160
2210
|
* and with {@link ProcessException} if `npm` cannot start.
|
|
@@ -2715,7 +2765,12 @@ export declare class ReproducibleStep implements IStep {
|
|
|
2715
2765
|
* which it writes into its checkout, each a tracked `package.json` or
|
|
2716
2766
|
* `package-lock.json`, and commits, pushes and proposes them as above; any
|
|
2717
2767
|
* other file, and a relock of a commit other than the one it checked out,
|
|
2718
|
-
* fails that repository.
|
|
2768
|
+
* fails that repository. In a repository whose pins moved, either way, it
|
|
2769
|
+
* also moves each entry of a tracked `module.json`'s `dependencies` and
|
|
2770
|
+
* `optionalDependencies` that names a module the commit releases, by the id
|
|
2771
|
+
* {@link ArchiveStep.readModuleIdsAsync} reads, at an older exact version,
|
|
2772
|
+
* to the version, and lists each such move in the description as it lists
|
|
2773
|
+
* the pins; a range and a newer or equal version stay.
|
|
2719
2774
|
*/
|
|
2720
2775
|
export declare class DependentsStep implements IStep {
|
|
2721
2776
|
/**
|
|
@@ -3145,11 +3200,14 @@ export declare class BuildStep implements IStep {
|
|
|
3145
3200
|
* `test [--skip-test-details] [--skip-coverage-details] [<filter>...]`. It
|
|
3146
3201
|
* compiles each package's `tests/tsconfig.json` into `_build/tests/<name>`,
|
|
3147
3202
|
* runs them through the checkout's `@noldova/context.testing` with V8
|
|
3148
|
-
* coverage,
|
|
3149
|
-
*
|
|
3150
|
-
*
|
|
3151
|
-
*
|
|
3152
|
-
*
|
|
3203
|
+
* coverage, under the hang limit `build.json`'s `testTimeoutMilliseconds`
|
|
3204
|
+
* sets, and requires complete coverage of the packages' source; a run with
|
|
3205
|
+
* filters skips the coverage gate. The run writes each test's time to
|
|
3206
|
+
* `_build/test-results.json`, and the step prints the 10 slowest, even with
|
|
3207
|
+
* `--skip-test-details`. The tests, their times and the coverage report each
|
|
3208
|
+
* run in a Node.js process of their own, so the checkout's packages never
|
|
3209
|
+
* load beside the step's. Run the build first: the tests use the installed
|
|
3210
|
+
* packages.
|
|
3153
3211
|
*/
|
|
3154
3212
|
export declare class TestStep implements IStep {
|
|
3155
3213
|
/**
|
|
@@ -3190,14 +3248,75 @@ export declare class TestStep implements IStep {
|
|
|
3190
3248
|
* `ClassName.methodName` substring or exact `category:name` identity.
|
|
3191
3249
|
* @returns A promise of the result: succeeded, such as
|
|
3192
3250
|
* `The tests passed, and coverage is complete.`, or failed for an unknown
|
|
3193
|
-
* option, a `build.json` that is not valid
|
|
3194
|
-
*
|
|
3195
|
-
*
|
|
3251
|
+
* option, a `build.json` that is not valid or sets no
|
|
3252
|
+
* `testTimeoutMilliseconds`, no package with tests, a compile that fails,
|
|
3253
|
+
* failed tests, test times that cannot be read, incomplete coverage, or a
|
|
3254
|
+
* coverage report that cannot run, such as without
|
|
3255
|
+
* `@noldova/context.testing` installed. It rejects with
|
|
3256
|
+
* {@link ProcessException} if a program cannot start.
|
|
3257
|
+
* @example
|
|
3258
|
+
* ```ts
|
|
3259
|
+
* (await step.runAsync(["--skip-test-details"])).message; // "The tests passed, and coverage is complete."
|
|
3260
|
+
* ```
|
|
3261
|
+
*/
|
|
3262
|
+
public runAsync(values: readonly string[]): Promise<StepResult>;
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
/**
|
|
3266
|
+
* The step that checks a checkout's test times: `timing`, run after the
|
|
3267
|
+
* test step, which compiles the tests. It runs the compiled tests three
|
|
3268
|
+
* times without coverage, under `build.json`'s `testTimeoutMilliseconds`,
|
|
3269
|
+
* and through the checkout's `@noldova/context.testing` judges each test
|
|
3270
|
+
* file's time, the sum of its tests' durations: it fails a file whose median
|
|
3271
|
+
* over the runs exceeds 2 seconds plus a margin of 50%, unless the
|
|
3272
|
+
* checkout's README lists the file with a time of its own, after the line
|
|
3273
|
+
* `Test files slower than the timing check's budget:`, which the file's
|
|
3274
|
+
* median may exceed by the same margin. It names a listed file within the
|
|
3275
|
+
* budget as stale, failing nothing. Its pass condition is a time, so it
|
|
3276
|
+
* runs apart from the test step, on a test machine.
|
|
3277
|
+
*/
|
|
3278
|
+
export declare class TimingStep implements IStep {
|
|
3279
|
+
/**
|
|
3280
|
+
* The step's name, `"timing"`.
|
|
3281
|
+
*/
|
|
3282
|
+
public readonly name: string;
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* The values the step takes: `""`, none.
|
|
3286
|
+
*/
|
|
3287
|
+
public readonly usage: string;
|
|
3288
|
+
|
|
3289
|
+
/**
|
|
3290
|
+
* Creates the step.
|
|
3291
|
+
*
|
|
3292
|
+
* @param workingDirectory The checkout's root.
|
|
3293
|
+
* @param processRunner What runs the tests and judges their times.
|
|
3294
|
+
* @param output Where the step writes its progress.
|
|
3295
|
+
* @example
|
|
3296
|
+
* ```ts
|
|
3297
|
+
* import { ProcessRunner, TimingStep, type IStepOutput } from "@noldova/tools.pipelines";
|
|
3298
|
+
*
|
|
3299
|
+
* declare const output: IStepOutput;
|
|
3300
|
+
* const step = new TimingStep(process.cwd(), new ProcessRunner(), output);
|
|
3301
|
+
* step.name; // "timing"
|
|
3302
|
+
* ```
|
|
3303
|
+
*/
|
|
3304
|
+
public constructor(workingDirectory: string, processRunner: ProcessRunner, output: IStepOutput);
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
* Runs the tests three times and judges their times.
|
|
3308
|
+
*
|
|
3309
|
+
* @param values None.
|
|
3310
|
+
* @returns A promise of the result: succeeded, `Every test file is within
|
|
3311
|
+
* its time.`, or failed for a value given, a `build.json` that is not
|
|
3312
|
+
* valid or sets no `testTimeoutMilliseconds`, no package with tests, tests
|
|
3313
|
+
* not compiled, a run that fails, a test file over its time, or test times
|
|
3314
|
+
* that cannot be read, such as without `@noldova/context.testing`
|
|
3196
3315
|
* installed. It rejects with {@link ProcessException} if a program cannot
|
|
3197
3316
|
* start.
|
|
3198
3317
|
* @example
|
|
3199
3318
|
* ```ts
|
|
3200
|
-
* (await step.runAsync([
|
|
3319
|
+
* (await step.runAsync([])).message; // "Every test file is within its time."
|
|
3201
3320
|
* ```
|
|
3202
3321
|
*/
|
|
3203
3322
|
public runAsync(values: readonly string[]): Promise<StepResult>;
|
package/api/index.js
CHANGED
|
@@ -37,6 +37,7 @@ export { SourceStep } from "../services/source-step.js";
|
|
|
37
37
|
export { TagStep } from "../services/tag-step.js";
|
|
38
38
|
export { Tar } from "../services/tar.js";
|
|
39
39
|
export { TestStep } from "../services/test-step.js";
|
|
40
|
+
export { TimingStep } from "../services/timing-step.js";
|
|
40
41
|
export { ToolchainStep } from "../services/toolchain-step.js";
|
|
41
42
|
export { TypeScript } from "../services/type-script.js";
|
|
42
43
|
export { UnchangedStep } from "../services/unchanged-step.js";
|
package/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAMtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B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oBAAoB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC"}
|
package/models/build-config.js
CHANGED
|
@@ -14,9 +14,11 @@ import { BuildPackage } from "./build-package.js";
|
|
|
14
14
|
export class BuildConfig {
|
|
15
15
|
scope;
|
|
16
16
|
packages;
|
|
17
|
-
|
|
17
|
+
testTimeoutMilliseconds;
|
|
18
|
+
constructor(scope, packages, testTimeoutMilliseconds) {
|
|
18
19
|
this.scope = scope;
|
|
19
20
|
this.packages = packages;
|
|
21
|
+
this.testTimeoutMilliseconds = testTimeoutMilliseconds;
|
|
20
22
|
}
|
|
21
23
|
get packageNames() {
|
|
22
24
|
return this.packages.map(t => t.packageName);
|
|
@@ -42,7 +44,10 @@ export class BuildConfig {
|
|
|
42
44
|
throw new BuildException(Resources.formatBuildConfigInvalid(Resources.formatBuildPackageDuplicated(buildPackage.name)));
|
|
43
45
|
packages.push(buildPackage);
|
|
44
46
|
}
|
|
45
|
-
|
|
47
|
+
const testTimeoutMilliseconds = reader.hasField(Resources.testTimeoutField) ? reader.readInteger(Resources.testTimeoutField) : undefined;
|
|
48
|
+
if (testTimeoutMilliseconds !== undefined && testTimeoutMilliseconds <= 0)
|
|
49
|
+
throw new BuildException(Resources.formatBuildConfigInvalid(Resources.formatTestTimeoutInvalid(testTimeoutMilliseconds)));
|
|
50
|
+
return testTimeoutMilliseconds === undefined ? new BuildConfig(scope, packages) : new BuildConfig(scope, packages, testTimeoutMilliseconds);
|
|
46
51
|
}
|
|
47
52
|
static readPackage(entry, scope) {
|
|
48
53
|
const name = entry.readString(Resources.nameField);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-config.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/build-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,WAAW;IACN,KAAK,CAAS;IACd,QAAQ,CAA0B;
|
|
1
|
+
{"version":3,"file":"build-config.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/build-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,iBA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OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACnE,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,QAAgB;QAC5C,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACtM,CAAC;CACF"}
|
package/models/build-package.js
CHANGED
|
@@ -22,13 +22,13 @@ export class BuildPackage {
|
|
|
22
22
|
this.post = post;
|
|
23
23
|
}
|
|
24
24
|
get sourceFolder() {
|
|
25
|
-
return
|
|
25
|
+
return Resources.formatPath(Resources.sourceFolder, this.path);
|
|
26
26
|
}
|
|
27
27
|
get buildFolder() {
|
|
28
|
-
return
|
|
28
|
+
return Resources.formatPath(Resources.buildFolder, this.name);
|
|
29
29
|
}
|
|
30
30
|
get testsFolder() {
|
|
31
|
-
return
|
|
31
|
+
return Resources.formatPath(Resources.testsFolder, this.name);
|
|
32
32
|
}
|
|
33
33
|
archiveName(version) {
|
|
34
34
|
return Resources.formatArchiveName(this.packageName, version);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-package.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/build-package.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,YAAY;IACP,IAAI,CAAS;IACb,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,GAAG,CAAgB;IACnB,OAAO,CAAgB;IACvB,IAAI,CAAgB;IAEpC,YAAmB,IAAY,EAAE,IAAI,GAAW,IAAI,EAAE,GAAG,GAAkB,IAAI,EAAE,OAAO,GAAkB,IAAI,EAAE,IAAI,GAAkB,IAAI,EAAE,KAAK,GAAW,SAAS,CAAC,mBAAmB;QACvL,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAC5D,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,IAAW,YAAY;QACrB,OAAO,
|
|
1
|
+
{"version":3,"file":"build-package.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/build-package.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,YAAY;IACP,IAAI,CAAS;IACb,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,GAAG,CAAgB;IACnB,OAAO,CAAgB;IACvB,IAAI,CAAgB;IAEpC,YAAmB,IAAY,EAAE,IAAI,GAAW,IAAI,EAAE,GAAG,GAAkB,IAAI,EAAE,OAAO,GAAkB,IAAI,EAAE,IAAI,GAAkB,IAAI,EAAE,KAAK,GAAW,SAAS,CAAC,mBAAmB;QACvL,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAC5D,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,IAAW,YAAY;QACrB,OAAO,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;IAED,IAAW,WAAW;QACpB,OAAO,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,IAAW,WAAW;QACpB,OAAO,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAEM,WAAW,CAAC,OAAe;QAChC,OAAO,SAAS,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { JsonException } from "@noldova/context.json";
|
|
9
|
+
import { PipelineException } from "../exceptions/pipeline.exception.js";
|
|
10
|
+
// The failures a step reports as one repository's or one version's failed line and then goes on: a program it runs, such
|
|
11
|
+
// as git or npm, failing, and malformed JSON from another repository or a registry. Anything else, such as a bug in the
|
|
12
|
+
// step, ends the run with its stack trace.
|
|
13
|
+
export class HandledFailure {
|
|
14
|
+
static isHandled(error) {
|
|
15
|
+
return error instanceof PipelineException || error instanceof JsonException || error instanceof SyntaxError;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=handled-failure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handled-failure.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/handled-failure.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,yHAAyH;AACzH,wHAAwH;AACxH,2CAA2C;AAC3C,MAAM,OAAO,cAAc;IAClB,MAAM,CAAC,SAAS,CAAC,KAAc;QACpC,OAAO,KAAK,YAAY,iBAAiB,IAAI,KAAK,YAAY,aAAa,IAAI,KAAK,YAAY,WAAW,CAAC;IAC9G,CAAC;CACF"}
|
package/models/version.js
CHANGED
|
@@ -49,6 +49,9 @@ export class Version {
|
|
|
49
49
|
equals(other) {
|
|
50
50
|
return this.compareTo(other) === 0;
|
|
51
51
|
}
|
|
52
|
+
nextMinor() {
|
|
53
|
+
return new Version(this.major, this.minor + 1, 0);
|
|
54
|
+
}
|
|
52
55
|
toString() {
|
|
53
56
|
const release = [this.major, this.minor, this.patch].join(Resources.versionPartSeparator);
|
|
54
57
|
return this.nightlyDate === null ? release : `${release}${Resources.nightlySeparator}${this.nightlyDate}`;
|
package/models/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/version.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,OAAO;IACF,KAAK,CAAS;IACd,KAAK,CAAS;IACd,KAAK,CAAS;IACd,WAAW,CAAgB;IAE3C,YAAmB,KAAa,EAAE,KAAa,EAAE,KAAa,EAAE,WAAW,GAAkB,IAAI;QAC/F,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAClD,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,EAAE,K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AAwB,CAAC,KAAK,CAAC,CAAC;QAEnD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,IAAY,EAAE,KAAa,EAAE,GAAW;QACpE,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QAEtD,OAAO,IAAI,CAAC,WAAW,EAAE,KAAK,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,CAAC;IACvE,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noldova/tools.pipelines",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "api/index.js",
|
|
6
6
|
"types": "api/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"registry": "https://registry.npmjs.org/"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@noldova/context.exceptions": "0.0.
|
|
23
|
-
"@noldova/context.json": "0.0.
|
|
22
|
+
"@noldova/context.exceptions": "0.0.8",
|
|
23
|
+
"@noldova/context.json": "0.0.8"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "75555e9074c197a43c9ede598b6f57385e6f38b4"
|
|
26
26
|
}
|