@fishawack/lab-env 5.7.0-beta.7 → 5.7.0-beta.9
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 +17 -0
- package/_Test/boilerplate-adonis.js +1 -1
- package/_Test/boilerplate-craftcms.js +1 -1
- package/_Test/boilerplate-drupal.js +1 -1
- package/_Test/boilerplate-laravel.js +1 -1
- package/_Test/boilerplate-python.js +1 -1
- package/_Test/boilerplate-wordpress.js +1 -1
- package/_Test/boilerplate.js +1 -1
- package/commands/create/libs/utilities.js +2 -0
- package/commands/create/libs/vars.js +2 -1
- package/commands/create/services/aws/elasticbeanstalk.js +2 -1
- package/commands/create/services/aws/index.js +13 -3
- package/commands/create/templates/elasticbeanstalk/.ebextensions/laravel/queue-worker.config +1 -1
- package/commands/create/templates/elasticbeanstalk/.platform/confighooks/postdeploy/restart_queue.sh +4 -0
- package/package.json +1 -1
- /package/commands/create/templates/elasticbeanstalk/.platform/confighooks/{postdeploy → prebuild}/setvars.sh +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 5.7.0-beta.9 (2026-07-16)
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* add a new Argenx account ([0cafb05](https://bitbucket.org/fishawackdigital/lab-env/commits/0cafb057ca83afe081dce8511ed945008234b3fe))
|
|
8
|
+
|
|
9
|
+
### 5.7.0-beta.8 (2026-07-08)
|
|
10
|
+
|
|
11
|
+
#### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* added restart queue to config post deploy ([397a138](https://bitbucket.org/fishawackdigital/lab-env/commits/397a138c46d45e4e437820f0e14e574bda19ea74))
|
|
14
|
+
* fail deprov if env goes back to ready ([e3dc73f](https://bitbucket.org/fishawackdigital/lab-env/commits/e3dc73fb21cc0a9d5f356d0f9c1d88d08cfdf13b))
|
|
15
|
+
* handle double hypen name safe values to always enforce only a single ([4a18dde](https://bitbucket.org/fishawackdigital/lab-env/commits/4a18dde460d49e5034f5952977c5fa5727d02126))
|
|
16
|
+
* increase timeout on test suits before call ([a0a31c8](https://bitbucket.org/fishawackdigital/lab-env/commits/a0a31c89e7d548a13e0f0ecdf1c591a1e2463506))
|
|
17
|
+
* moved setvars config update to prebuild for consistency ([64483d0](https://bitbucket.org/fishawackdigital/lab-env/commits/64483d0473f2c3f449a55f0f6fe6ee1e565c12a9))
|
|
18
|
+
* simpler queue worker ([4ecc62d](https://bitbucket.org/fishawackdigital/lab-env/commits/4ecc62df734c9aabdbaec1db6ea87c80169128b3))
|
|
19
|
+
|
|
3
20
|
### 5.7.0-beta.7 (2026-07-03)
|
|
4
21
|
|
|
5
22
|
#### 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 *
|
|
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 *
|
|
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 *
|
|
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 *
|
|
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 *
|
|
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 *
|
|
15
|
+
this.timeout(60000 * 20);
|
|
16
16
|
|
|
17
17
|
execSync(
|
|
18
18
|
`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
|
package/_Test/boilerplate.js
CHANGED
|
@@ -12,7 +12,7 @@ const execSync = require("child_process").execSync;
|
|
|
12
12
|
|
|
13
13
|
describe("deploy", () => {
|
|
14
14
|
before(function () {
|
|
15
|
-
this.timeout(60000 *
|
|
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/
|
|
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,
|
|
269
|
+
fs.outputFileSync(checksumPath, JSON.stringify(checksums, null, 4) + "\n");
|
|
269
270
|
|
|
270
271
|
fs.outputFileSync(
|
|
271
272
|
`_IaC/${branch}/.elasticbeanstalk/config.yml`,
|
|
@@ -243,6 +243,7 @@ module.exports.clients = [
|
|
|
243
243
|
"dompe",
|
|
244
244
|
"test",
|
|
245
245
|
"bristolmyers",
|
|
246
|
+
"argenx",
|
|
246
247
|
];
|
|
247
248
|
|
|
248
249
|
module.exports.static = async (
|
|
@@ -1617,7 +1618,10 @@ module.exports.fullstackTerminate = async (
|
|
|
1617
1618
|
);
|
|
1618
1619
|
return res.DBInstances[0];
|
|
1619
1620
|
} catch (e) {
|
|
1620
|
-
if (
|
|
1621
|
+
if (
|
|
1622
|
+
e.name === "DBInstanceNotFoundFault" ||
|
|
1623
|
+
e.name === "InvalidParameterValue"
|
|
1624
|
+
) {
|
|
1621
1625
|
return { DBInstanceStatus: "deleted" };
|
|
1622
1626
|
}
|
|
1623
1627
|
throw e;
|
|
@@ -1640,7 +1644,10 @@ module.exports.fullstackTerminate = async (
|
|
|
1640
1644
|
);
|
|
1641
1645
|
return DomainStatus;
|
|
1642
1646
|
} catch (e) {
|
|
1643
|
-
if (
|
|
1647
|
+
if (
|
|
1648
|
+
e.name === "ResourceNotFoundException" ||
|
|
1649
|
+
e.name === "ValidationException"
|
|
1650
|
+
) {
|
|
1644
1651
|
return { deleted: true };
|
|
1645
1652
|
}
|
|
1646
1653
|
throw e;
|
|
@@ -1664,7 +1671,10 @@ module.exports.fullstackTerminate = async (
|
|
|
1664
1671
|
);
|
|
1665
1672
|
return ReplicationGroups[0];
|
|
1666
1673
|
} catch (e) {
|
|
1667
|
-
if (
|
|
1674
|
+
if (
|
|
1675
|
+
e.name === "ReplicationGroupNotFoundFault" ||
|
|
1676
|
+
e.name === "InvalidParameterValue"
|
|
1677
|
+
) {
|
|
1668
1678
|
return { deleted: true };
|
|
1669
1679
|
}
|
|
1670
1680
|
throw e;
|
package/commands/create/templates/elasticbeanstalk/.ebextensions/laravel/queue-worker.config
CHANGED
|
@@ -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
|
|
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
|
package/package.json
CHANGED
|
File without changes
|