Skip to content

Commit 6930094

Browse files
ADFA-5051 [TEST] 1.2.1 fails on the live port to re-test the hardened rollback (revert)
1 parent 5592dcf commit 6930094

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎static/dashboard/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎static/dashboard/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dashboard-console",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

‎static/dashboard/routes.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ const DASH_BRANCH = process.env.K2GO_DASH_BRANCH || 'main';
249249

250250
// Installed dash-node version (from package.json), so the module card can show it + compare.
251251
apiRouter.get('/system/version', (_req: Request, res: Response): void => {
252+
// ADFA-5051 [TEST] fail ONLY on the live port (4000) so this build passes the staged smoke (:4010)
253+
// but fails the live verify -> exercises the rollback + no-drift. REVERT before merge.
254+
if ((Number(process.env.PORT) || 4000) === 4000) { res.status(500).json({ error: '[TEST] live-only failure' }); return; }
252255
try {
253256
const pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'), 'utf8'));
254257
res.json({ version: String(pkg.version || 'unknown') });

0 commit comments

Comments
 (0)