werkmeister-core 0.92.0 → 0.92.2

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
@@ -1,5 +1,9 @@
1
1
  # sandbox-core
2
2
 
3
+ ## 0.92.2
4
+
5
+ ## 0.92.1
6
+
3
7
  ## 0.92.0
4
8
 
5
9
  ### Patch Changes
@@ -980,6 +980,16 @@ testsOnly = false) {
980
980
  earlier.detail = `started on the second attempt (first: ${earlier.detail})`;
981
981
  }
982
982
  };
983
+ // Running containers come from compose.yml, rendered from the machine registry; a
984
+ // touched service whose branch settings render differently runs from compose.gate.yml (SW-118).
985
+ let changed = [];
986
+ if (own)
987
+ try {
988
+ changed = deps.gateCompose(ws, feature, services).filter((s) => touched.includes(s));
989
+ }
990
+ catch (e) {
991
+ add("containers", false, `branch compose: ${e instanceof Error ? e.message : String(e)}`);
992
+ }
983
993
  const withCommand = touched.filter((s) => !reason(skips[s]) && serviceTestCommand(s, services[s], deps.archetypes));
984
994
  const covers = coveredRows(Object.fromEntries(withCommand.map((s) => [
985
995
  s,
@@ -988,9 +998,11 @@ testsOnly = false) {
988
998
  coveredBy: services[s]?.["test_covered_by"],
989
999
  },
990
1000
  ])));
991
- // A local api/web service's baseline row needs its own container, so covering it would save no start.
1001
+ // A local api/web service's baseline needs its own container, and a changed one starts from compose.gate.yml
1002
+ // anyway: covering either saves no start, and the changed one's branch settings would go untested (SW-808).
992
1003
  for (const s of Object.keys(covers))
993
- if (local.has(s) && ["api", "web"].includes(services[s]?.["type"] ?? ""))
1004
+ if (changed.includes(s) ||
1005
+ (local.has(s) && ["api", "web"].includes(services[s]?.["type"] ?? "")))
994
1006
  delete covers[s];
995
1007
  // Out of the release pick and the starts too, so a covered service's container never starts (SW-574).
996
1008
  const tested = withCommand.filter((s) => !covers[s]);
@@ -1035,16 +1047,6 @@ testsOnly = false) {
1035
1047
  });
1036
1048
  return done();
1037
1049
  }
1038
- // Running containers come from compose.yml, rendered from the machine registry; a
1039
- // touched service whose branch settings render differently runs from compose.gate.yml (SW-118).
1040
- let changed = [];
1041
- if (own)
1042
- try {
1043
- changed = deps.gateCompose(ws, feature, services).filter((s) => touched.includes(s));
1044
- }
1045
- catch (e) {
1046
- add("containers", false, `branch compose: ${e instanceof Error ? e.message : String(e)}`);
1047
- }
1048
1050
  let release;
1049
1051
  const runRelease = async (container) => {
1050
1052
  const res = await execCheck("release", container, String(repo["release_check"]), 5);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "werkmeister-core",
3
- "version": "0.92.0",
3
+ "version": "0.92.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "werkmeister's shared library. Its public API is werkmeister-core/sdk; every other entry point is internal.",