@fishawack/lab-env 5.7.0-beta.7 → 5.7.0-beta.8

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,16 @@
1
1
  ## Changelog
2
2
 
3
+ ### 5.7.0-beta.8 (2026-07-08)
4
+
5
+ #### Bug Fixes
6
+
7
+ * added restart queue to config post deploy ([397a138](https://bitbucket.org/fishawackdigital/lab-env/commits/397a138c46d45e4e437820f0e14e574bda19ea74))
8
+ * fail deprov if env goes back to ready ([e3dc73f](https://bitbucket.org/fishawackdigital/lab-env/commits/e3dc73fb21cc0a9d5f356d0f9c1d88d08cfdf13b))
9
+ * handle double hypen name safe values to always enforce only a single ([4a18dde](https://bitbucket.org/fishawackdigital/lab-env/commits/4a18dde460d49e5034f5952977c5fa5727d02126))
10
+ * increase timeout on test suits before call ([a0a31c8](https://bitbucket.org/fishawackdigital/lab-env/commits/a0a31c89e7d548a13e0f0ecdf1c591a1e2463506))
11
+ * moved setvars config update to prebuild for consistency ([64483d0](https://bitbucket.org/fishawackdigital/lab-env/commits/64483d0473f2c3f449a55f0f6fe6ee1e565c12a9))
12
+ * simpler queue worker ([4ecc62d](https://bitbucket.org/fishawackdigital/lab-env/commits/4ecc62df734c9aabdbaec1db6ea87c80169128b3))
13
+
3
14
  ### 5.7.0-beta.7 (2026-07-03)
4
15
 
5
16
  #### Bug Fixes
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
12
12
 
13
13
  describe("deploy", () => {
14
14
  before(function () {
15
- this.timeout(60000 * 10);
15
+ this.timeout(60000 * 20);
16
16
 
17
17
  execSync(
18
18
  `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
12
12
 
13
13
  describe("deploy", () => {
14
14
  before(function () {
15
- this.timeout(60000 * 10);
15
+ this.timeout(60000 * 20);
16
16
 
17
17
  execSync(
18
18
  `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
12
12
 
13
13
  describe("deploy", () => {
14
14
  before(function () {
15
- this.timeout(60000 * 10);
15
+ this.timeout(60000 * 20);
16
16
 
17
17
  execSync(
18
18
  `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
12
12
 
13
13
  describe("deploy", () => {
14
14
  before(function () {
15
- this.timeout(60000 * 10);
15
+ this.timeout(60000 * 20);
16
16
 
17
17
  execSync(
18
18
  `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
12
12
 
13
13
  describe("deploy", () => {
14
14
  before(function () {
15
- this.timeout(60000 * 10);
15
+ this.timeout(60000 * 20);
16
16
 
17
17
  execSync(
18
18
  `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
12
12
 
13
13
  describe("deploy", () => {
14
14
  before(function () {
15
- this.timeout(60000 * 10);
15
+ this.timeout(60000 * 20);
16
16
 
17
17
  execSync(
18
18
  `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
12
12
 
13
13
  describe("deploy", () => {
14
14
  before(function () {
15
- this.timeout(60000 * 10);
15
+ this.timeout(60000 * 20);
16
16
 
17
17
  execSync(
18
18
  `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
@@ -142,12 +142,14 @@ module.exports.nameSafe = (name, service = "s3") => {
142
142
 
143
143
  safe = safe.substring(0, maxLength - suffix.length - prefix.length);
144
144
  safe = safe.replace(/[^a-zA-Z0-9-_. ]/g, ""); // Remove special chars except . _ - as these are all transformed into -
145
+ safe = safe.replace(/-+$/, ""); // Strip trailing hyphens before suffix is appended
145
146
  safe = safe.toLowerCase();
146
147
  safe = `${prefix}${safe}`;
147
148
  safe = `${safe}${suffix}`;
148
149
  safe = safe.replace(/\./g, "-");
149
150
  // eslint-disable-next-line no-useless-escape
150
151
  safe = safe.replace(/\_/g, "-");
152
+ safe = safe.replace(/--+/g, "-"); // Collapse any consecutive hyphens
151
153
 
152
154
  return safe;
153
155
  };
@@ -584,6 +584,7 @@ module.exports.eb = {
584
584
  ".ebextensions/laravel/rds-ssl.config",
585
585
  ".ebextensions/laravel/software.config",
586
586
  ".platform/hooks/postdeploy/restart_queue.sh",
587
+ ".platform/confighooks/postdeploy/restart_queue.sh",
587
588
  ],
588
589
  },
589
590
  adonis: {
@@ -606,7 +607,7 @@ module.exports.eb = {
606
607
  },
607
608
  shared: [
608
609
  ".platform/hooks/prebuild/setvars.sh",
609
- ".platform/confighooks/postdeploy/setvars.sh",
610
+ ".platform/confighooks/prebuild/setvars.sh",
610
611
  ".ebextensions/misc/asg-self-healing.config",
611
612
  ".ebextensions/misc/alb-http-to-https-redirection.config",
612
613
  ".ebextensions/misc/enable-https-lb.config",
@@ -186,6 +186,7 @@ module.exports.removeElasticBeanstalkEnvironment = async (name) => {
186
186
  return module.exports.waitForElasticBeanstalkEnvironment(
187
187
  name,
188
188
  "Terminated",
189
+ "Ready",
189
190
  );
190
191
  },
191
192
  );
@@ -265,7 +266,7 @@ module.exports.copyElasticBeanstalkConfigs = async (configurations, branch) => {
265
266
  }
266
267
  }
267
268
 
268
- fs.outputFileSync(checksumPath, JSON.stringify(checksums, null, 2));
269
+ fs.outputFileSync(checksumPath, JSON.stringify(checksums, null, 4) + "\n");
269
270
 
270
271
  fs.outputFileSync(
271
272
  `_IaC/${branch}/.elasticbeanstalk/config.yml`,
@@ -1617,7 +1617,10 @@ module.exports.fullstackTerminate = async (
1617
1617
  );
1618
1618
  return res.DBInstances[0];
1619
1619
  } catch (e) {
1620
- if (e.name === "DBInstanceNotFoundFault") {
1620
+ if (
1621
+ e.name === "DBInstanceNotFoundFault" ||
1622
+ e.name === "InvalidParameterValue"
1623
+ ) {
1621
1624
  return { DBInstanceStatus: "deleted" };
1622
1625
  }
1623
1626
  throw e;
@@ -1640,7 +1643,10 @@ module.exports.fullstackTerminate = async (
1640
1643
  );
1641
1644
  return DomainStatus;
1642
1645
  } catch (e) {
1643
- if (e.name === "ResourceNotFoundException") {
1646
+ if (
1647
+ e.name === "ResourceNotFoundException" ||
1648
+ e.name === "ValidationException"
1649
+ ) {
1644
1650
  return { deleted: true };
1645
1651
  }
1646
1652
  throw e;
@@ -1664,7 +1670,10 @@ module.exports.fullstackTerminate = async (
1664
1670
  );
1665
1671
  return ReplicationGroups[0];
1666
1672
  } catch (e) {
1667
- if (e.name === "ReplicationGroupNotFoundFault") {
1673
+ if (
1674
+ e.name === "ReplicationGroupNotFoundFault" ||
1675
+ e.name === "InvalidParameterValue"
1676
+ ) {
1668
1677
  return { deleted: true };
1669
1678
  }
1670
1679
  throw e;
@@ -13,7 +13,7 @@ files:
13
13
  Group=webapp
14
14
  WorkingDirectory=/var/app/current
15
15
  EnvironmentFile=/etc/sysconfig/env
16
- ExecStart=/usr/bin/php /var/app/current/artisan queue:work database --queue=streaming,default --timeout=620 --tries=1
16
+ ExecStart=/usr/bin/php /var/app/current/artisan queue:work --timeout=620 --tries=1
17
17
  Restart=always
18
18
  RestartSec=5
19
19
  StandardOutput=append:/var/log/queue-worker.log
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ systemctl restart queue-worker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-env",
3
- "version": "5.7.0-beta.7",
3
+ "version": "5.7.0-beta.8",
4
4
  "description": "Docker manager for FW",
5
5
  "main": "cli.js",
6
6
  "scripts": {