YuryShkoda
0af6b63ffa
fix: fix code.spec.ts failing on a fresh checkout (CI)
2026-07-14 09:20:35 +03:00
YuryShkoda
67fce475a3
fix(api): harden mock SAS executable and timeouts for CI
...
- wrap the file read/write in a small retry() helper instead of
letting an uncaught exception (e.g. a rename racing an existsSync
check) crash the process with a non-zero exit indistinguishable
from a genuine SAS failure
- bump the internal give-up deadline from 1500ms to 8000ms
- bump the corresponding Jest test timeouts from 15000ms to 30000ms to match
2026-07-14 08:41:35 +03:00
YuryShkoda
f84af4ac06
fix(api): return prompt error response instead of hanging when a SAS session fails
...
The SAS-runtime poll loop in processProgram only checked for
SessionState.completed, so a session that failed (e.g. via %abort;)
left the loop spinning on delay(50) forever - the request never
resolved, even though the SAS log had already been written. Split a single completed-on-either-outcome
flag into separate completed/failed states without updating this loop.
- processProgram now throws when session.state becomes 'failed'
- Execution.ts catches that, reads the complete log (guaranteed
complete since the session's process has already exited by then),
and throws a SessionExecutionError carrying it
- stp.ts/code.ts surface { ..., log } in the HTTP error response
- add unit tests for the poll loop and the log-enrichment logic, plus
a mock SAS executable + end-to-end test exercising the real
session/process pipeline without needing a SAS install
- add docs/diagrams covering the session lifecycle and the SAS
execution handshake mechanism, for future context
2026-07-13 13:46:36 +03:00
semantic-release-bot
8b2a6155a9
chore(release): 0.39.4 [skip ci]
...
## [0.39.4](https://github.com/sasjs/server/compare/v0.39.3...v0.39.4 ) (2025-12-21)
### Bug Fixes
* **deps:** bump dependencies and resolve audit issues ([4f78202 ](https://github.com/sasjs/server/commit/4f782025dbcdfcbae6ca1fabb42ce1bc385e0162 ))
v0.39.4
2025-12-21 01:27:37 +00:00
Trevor Moody
a56c0b0340
Merge pull request #386 from sasjs/depBumps_20251221
...
fix(deps): bump dependencies and resolve audit issues
2025-12-21 01:24:31 +00:00
Trevor Moody
02fe79d4d7
chore(deps): full package-lock rebuild
2025-12-21 01:22:35 +00:00
Trevor Moody
00a107babd
chore(deps): rebuilt api/package-json to sync
2025-12-21 01:15:05 +00:00
Trevor Moody
4f782025db
fix(deps): bump dependencies and resolve audit issues
2025-12-21 00:27:24 +00:00
semantic-release-bot
8b5abcd661
chore(release): 0.39.3 [skip ci]
...
## [0.39.3](https://github.com/sasjs/server/compare/v0.39.2...v0.39.3 ) (2025-11-25)
### Bug Fixes
* (deps) bump @sasjs/core to 4.59.7 ([ab96653 ](https://github.com/sasjs/server/commit/ab966535642d08d4e8e984007b98c8fdffbe30f7 ))
* (deps) rerun npm i to sync ([225f381 ](https://github.com/sasjs/server/commit/225f381bdf8ad5aa2af8d75648df1dd5175e12e0 ))
v0.39.3
2025-11-25 12:39:15 +00:00
Allan Bowe
48e8cb7b2d
Merge pull request #385 from sasjs/bumpCore_20251125
...
fix: (deps) rerun npm i to sync
2025-11-25 12:36:18 +00:00
Trevor Moody
225f381bdf
fix: (deps) rerun npm i to sync
2025-11-25 12:27:14 +00:00
Allan Bowe
3f49186e3b
Merge pull request #384 from sasjs/bumpCore_20251125
...
fix: (deps) bump @sasjs/core to 4.59.7
2025-11-25 12:24:27 +00:00
Trevor Moody
ab96653564
fix: (deps) bump @sasjs/core to 4.59.7
2025-11-25 12:18:50 +00:00
semantic-release-bot
471c28eaa2
chore(release): 0.39.2 [skip ci]
...
## [0.39.2](https://github.com/sasjs/server/compare/v0.39.1...v0.39.2 ) (2025-09-25)
### Bug Fixes
* addressing test fail ([e51b204 ](https://github.com/sasjs/server/commit/e51b20421adc1598ea267c79b1fb4dbc085f97b9 ))
* packages missmatch ([379ea60 ](https://github.com/sasjs/server/commit/379ea604bcb5686b5299fae6a32f759c45b275ea ))
* type libs ([6d123c3 ](https://github.com/sasjs/server/commit/6d123c3e23628c1d703eaa13142c77f0da970a55 ))
* typescript errors ([631e956 ](https://github.com/sasjs/server/commit/631e95604b64b1a96f2abade659348618f3b00b2 ))
* typescript errors ([198cd79 ](https://github.com/sasjs/server/commit/198cd79354254511c21ac1acfbf7b6bcfdab2af7 ))
v0.39.2
2025-09-25 16:57:01 +00:00
Allan Bowe
584ffe9e0e
Merge pull request #383 from sasjs/npm_update_20250919
...
Npm update 20250919
2025-09-25 17:53:46 +01:00
M
e51b20421a
fix: addressing test fail
2025-09-25 13:49:32 +02:00
M
631e95604b
fix: typescript errors
2025-09-25 13:40:10 +02:00
M
198cd79354
fix: typescript errors
2025-09-25 13:34:55 +02:00
M
379ea604bc
fix: packages missmatch
2025-09-25 13:12:23 +02:00
M
9ffa403bcb
chore: package-lock
2025-09-25 13:06:06 +02:00
M
6d123c3e23
fix: type libs
2025-09-25 13:03:47 +02:00
M
dda1aadc67
chore(git): Merge branch 'main' into npm_update_20250919
2025-09-25 12:48:10 +02:00
M
d47cf15cdb
ci: ubuntu 22
2025-09-25 12:46:19 +02:00
Trevor Moody
d0c7968d66
build: updated package dependencies for /web
2025-09-19 18:24:58 +01:00
Trevor Moody
a5c99971cc
build: server/api dependency update
2025-09-19 14:06:50 +01:00
semantic-release-bot
c422e7f02e
chore(release): 0.39.1 [skip ci]
...
## [0.39.1](https://github.com/sasjs/server/compare/v0.39.0...v0.39.1 ) (2025-03-13)
### Bug Fixes
* extra bit of sleep for file recognition ([f4768bf ](https://github.com/sasjs/server/commit/f4768bffd3dbb2fe243966572ba74002024d96e1 )), closes [#381 ](https://github.com/sasjs/server/issues/381 )
v0.39.1
2025-03-13 10:59:10 +00:00
Allan Bowe
02a993611c
Merge pull request #382 from sasjs/381-add-slight-delay-to-enable-file-detection
...
fix: extra bit of sleep for file recognition
2025-03-13 10:56:13 +00:00
sabhas
aca2fff4ac
chore(workflow): run the build workflow on ubuntu 20.04
2025-03-13 15:50:23 +05:00
sabhas
af1a386b13
chore(workflow): install openssl 1.1 in actions
2025-03-13 15:43:20 +05:00
Allan Bowe
f5018ce1df
chore: prettier fix
2025-03-12 17:33:02 +00:00
Allan Bowe
3529232f1f
chore: whitespace removal
2025-03-12 17:29:02 +00:00
Allan Bowe
f4768bffd3
fix: extra bit of sleep for file recognition
...
closes #381
2025-03-12 17:27:57 +00:00
semantic-release-bot
c261745f1d
chore(release): 0.39.0 [skip ci]
...
# [0.39.0](https://github.com/sasjs/server/compare/v0.38.0...v0.39.0 ) (2024-10-31)
### Bug Fixes
* **api:** fixed condition in processProgram ([48a9a4d ](https://github.com/sasjs/server/commit/48a9a4dd0e31f84209635382be4ec4bb2c3a9c0c ))
### Features
* **api:** added session state endpoint ([6b6546c ](https://github.com/sasjs/server/commit/6b6546c7ad0833347f8dc4cdba6ad19132f7aaef ))
v0.39.0
2024-10-31 12:54:02 +00:00
Yury Shkoda
d6e527ecf2
Merge pull request #379 from sasjs/issue-378
...
Issue 378
2024-10-31 15:51:13 +03:00
Yury
bc2cff1d0d
chore(api): updated trigger endpoints description
2024-10-31 15:30:32 +03:00
Yury
66aa9b5891
chore(api): updated trigger endpoints description
2024-10-31 15:20:35 +03:00
Yury
ca17e7c192
chore(api): updated endpoint description
2024-10-31 14:08:56 +03:00
Yury
73df102422
chore(api): updated endpoint description
2024-10-31 12:27:56 +03:00
Yury
48a9a4dd0e
fix(api): fixed condition in processProgram
2024-10-31 11:17:20 +03:00
Yury
4f6f735f5b
chore(lint): fixed code style issue
2024-10-31 10:08:34 +03:00
Yury
6b6546c7ad
feat(api): added session state endpoint
2024-10-30 17:42:50 +03:00
Yury
f94ddc0352
refactor(session): implemented session state
2024-10-30 15:33:06 +03:00
Yury
03670cf0d6
chore(swagger): fixed code/stp trigger examples
2024-10-30 15:25:03 +03:00
semantic-release-bot
ea2ec97c1c
chore(release): 0.38.0 [skip ci]
...
# [0.38.0](https://github.com/sasjs/server/compare/v0.37.0...v0.38.0 ) (2024-10-30)
### Features
* **api:** enabled query params in stp/trigger endpoint ([5cda9cd ](https://github.com/sasjs/server/commit/5cda9cd5d8623b7ea2ecd989d7808f47ec866672 ))
v0.38.0
2024-10-30 09:25:17 +00:00
Yury Shkoda
832f1156e8
Merge pull request #377 from sasjs/issue-373-stp-fix
...
feat(api): enabled query params in stp/trigger endpoint
2024-10-30 12:22:10 +03:00
Yury
5cda9cd5d8
feat(api): enabled query params in stp/trigger endpoint
2024-10-30 09:39:47 +03:00
semantic-release-bot
5d576aff91
chore(release): 0.37.0 [skip ci]
...
# [0.37.0](https://github.com/sasjs/server/compare/v0.36.0...v0.37.0 ) (2024-10-29)
### Features
* **stp:** added trigger endpoint ([b0723f1 ](https://github.com/sasjs/server/commit/b0723f14448d60ffce4f2175cf8a73fc4d4dd0ee ))
v0.37.0
2024-10-29 14:11:35 +00:00
Yury Shkoda
a044176054
Merge pull request #375 from sasjs/issue-373-stp
...
Issue 373 stp
2024-10-29 17:08:38 +03:00
Yury
deee34f5fd
chore(stp): removed query logic from trigger endpoint
2024-10-29 16:55:40 +03:00
Yury
b0723f1444
feat(stp): added trigger endpoint
2024-10-29 16:27:53 +03:00