File tree Expand file tree Collapse file tree
tests/runtime-driver/node Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : pkg.pr.new
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - " .github/workflows/pkg-pr-new.yaml"
7+ - " package.json"
8+ - " pnpm-lock.yaml"
9+ - " pnpm-workspace.yaml"
10+ - " packages/secure-exec/**"
11+ push :
12+ branches :
13+ - main
14+ paths :
15+ - " .github/workflows/pkg-pr-new.yaml"
16+ - " package.json"
17+ - " pnpm-lock.yaml"
18+ - " pnpm-workspace.yaml"
19+ - " packages/secure-exec/**"
20+
21+ concurrency :
22+ group : pkg-pr-new-${{ github.event.pull_request.number || github.ref }}
23+ cancel-in-progress : true
24+
25+ jobs :
26+ publish :
27+ runs-on : ubuntu-latest
28+ permissions :
29+ contents : read
30+ pull-requests : write
31+ steps :
32+ - name : Checkout repository
33+ uses : actions/checkout@v4
34+
35+ - name : Enable Corepack
36+ run : corepack enable
37+
38+ - name : Set up Node.js
39+ uses : actions/setup-node@v4
40+ with :
41+ node-version : " 22"
42+ cache : pnpm
43+ cache-dependency-path : pnpm-lock.yaml
44+
45+ - name : Install dependencies
46+ run : pnpm install --frozen-lockfile
47+
48+ - name : Build package
49+ run : pnpm --filter secure-exec build
50+
51+ - name : Publish to pkg.pr.new
52+ run : pnpm dlx pkg-pr-new publish "./packages/secure-exec" --packageManager pnpm
Original file line number Diff line number Diff line change 44 "type" : " module" ,
55 "main" : " ./dist/index.js" ,
66 "types" : " ./dist/index.d.ts" ,
7+ "files" : [
8+ " dist"
9+ ],
10+ "repository" : {
11+ "type" : " git" ,
12+ "url" : " https://github.com/rivet-dev/secure-exec.git" ,
13+ "directory" : " packages/secure-exec"
14+ },
715 "exports" : {
816 "." : {
917 "import" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ describe("runtime driver specific: node", () => {
4040 createNodeRuntimeDriverFactory ( ) ;
4141 const runtime = new NodeRuntime ( {
4242 memoryLimit : 128 ,
43- cpuTimeLimitMs : 250 ,
43+ // Keep the default runtime limit low enough to exercise node-only
44+ // construction options without depending on machine-specific startup jitter.
45+ cpuTimeLimitMs : 500 ,
4446 timingMitigation : "off" ,
4547 payloadLimits : {
4648 base64TransferBytes : 4096 ,
@@ -57,7 +59,9 @@ describe("runtime driver specific: node", () => {
5759 it ( "accepts Node-only exec options" , async ( ) => {
5860 const runtime = createRuntime ( ) ;
5961 const result = await runtime . exec ( `console.log("node-exec-options-ok");` , {
60- cpuTimeLimitMs : 50 ,
62+ // Keep the limit low enough to exercise the node-only option path
63+ // without coupling the test to machine-specific startup jitter.
64+ cpuTimeLimitMs : 250 ,
6165 timingMitigation : "off" ,
6266 } ) ;
6367 expect ( result . code ) . toBe ( 0 ) ;
You can’t perform that action at this time.
0 commit comments