@basemaps/cli 6.14.0 → 6.15.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.15.0](https://github.com/linz/basemaps/compare/v6.14.2...v6.15.0) (2021-11-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli:** ensure all files from the job.json are created before logging JobComplete ([#1959](https://github.com/linz/basemaps/issues/1959)) ([78fd35a](https://github.com/linz/basemaps/commit/78fd35ad863c424069d79c8668e9e5b3195ccec9))
12
+
13
+
14
+
15
+
16
+
6
17
  # [6.14.0](https://github.com/linz/basemaps/compare/v6.13.0...v6.14.0) (2021-10-27)
7
18
 
8
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"action.cog.d.ts","sourceRoot":"","sources":["../../../src/cli/cogify/action.cog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClF,OAAO,EACL,iBAAiB,EAIlB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAM5C,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,OAAO,CAAC,GAAG,CAAC,CAA6B;IACzC,OAAO,CAAC,IAAI,CAAC,CAA6B;IAC1C,OAAO,CAAC,MAAM,CAAC,CAA2B;IAC1C,OAAO,CAAC,QAAQ,CAAC,CAA8B;;IAU/C,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAgC7B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAqEhC,2DAA2D;IACrD,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBrE,SAAS,CAAC,kBAAkB,IAAI,IAAI;CA4BrC"}
1
+ {"version":3,"file":"action.cog.d.ts","sourceRoot":"","sources":["../../../src/cli/cogify/action.cog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClF,OAAO,EACL,iBAAiB,EAIlB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAM5C,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,OAAO,CAAC,GAAG,CAAC,CAA6B;IACzC,OAAO,CAAC,IAAI,CAAC,CAA6B;IAC1C,OAAO,CAAC,MAAM,CAAC,CAA2B;IAC1C,OAAO,CAAC,QAAQ,CAAC,CAA8B;;IAU/C,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAgC7B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAqEhC,2DAA2D;IACrD,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBrE,SAAS,CAAC,kBAAkB,IAAI,IAAI;CA4BrC"}
@@ -107,23 +107,21 @@ export class ActionCogCreate extends CommandLineAction {
107
107
  async checkJobStatus(job, logger) {
108
108
  const basePath = job.getJobPath();
109
109
  const expectedTiffs = new Set();
110
+ const jobSize = job.output.files.length;
111
+ for (const file of job.output.files)
112
+ expectedTiffs.add(`${file.name}.tiff`);
110
113
  for await (const fileName of fsa.list(basePath)) {
111
114
  const basename = path.basename(fileName);
112
115
  // Look for tile tiffs only
113
116
  if (!basename.includes('-') || !basename.endsWith('.tiff'))
114
117
  continue;
115
- expectedTiffs.add(basename);
116
- }
117
- const jobSize = job.output.files.length;
118
- for (const file of job.output.files) {
119
- if (expectedTiffs.has(`${file.name}.tiff`))
120
- expectedTiffs.delete(`${file.name}.tiff`);
118
+ expectedTiffs.delete(basename);
121
119
  }
122
120
  if (expectedTiffs.size === 0) {
123
- logger.info({ tiffCount: jobSize }, 'CogCreate:JobComplete');
121
+ logger.info({ tiffCount: jobSize, tiffTotal: jobSize }, 'CogCreate:JobComplete');
124
122
  }
125
123
  else {
126
- logger.info({ tiffCount: jobSize, remainingTiff: expectedTiffs.size }, 'CogCreate:JobProgress');
124
+ logger.info({ tiffCount: jobSize, tiffRemaining: expectedTiffs.size }, 'CogCreate:JobProgress');
127
125
  }
128
126
  }
129
127
  onDefineParameters() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/cli",
3
- "version": "6.14.0",
3
+ "version": "6.15.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,5 +60,5 @@
60
60
  "files": [
61
61
  "build/"
62
62
  ],
63
- "gitHead": "320a55f85f5f64a5f9f89387cf7b4837984fe159"
63
+ "gitHead": "69cf1c417a9de62e7ac38b8a4d9309a1359260fa"
64
64
  }