ic-mops 0.34.2 → 0.34.4
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/commands/bench.ts +1 -1
- package/commands/test/test.ts +6 -1
- package/dist/commands/bench.js +1 -1
- package/dist/commands/test/test.js +6 -1
- package/dist/integrity.js +3 -0
- package/dist/package.json +1 -1
- package/integrity.ts +4 -0
- package/package.json +1 -1
package/commands/bench.ts
CHANGED
|
@@ -166,7 +166,7 @@ function startDfx(verbose = false) {
|
|
|
166
166
|
stopDfx(verbose);
|
|
167
167
|
let dir = path.join(getRootDir(), '.mops/.bench');
|
|
168
168
|
fs.writeFileSync(path.join(dir, 'dfx.json'), JSON.stringify(dfxJson(''), null, 2));
|
|
169
|
-
execSync('dfx start --background --clean' + (verbose ? '' : ' -qqqq'), {cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit']});
|
|
169
|
+
execSync('dfx start --background --clean --artificial-delay 0' + (verbose ? '' : ' -qqqq'), {cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit']});
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
function stopDfx(verbose = false) {
|
package/commands/test/test.ts
CHANGED
|
@@ -153,7 +153,12 @@ export async function testWithReporter(reporter: Reporter, filter = '', mode: Te
|
|
|
153
153
|
'--wasm-features',
|
|
154
154
|
'multi-memory,bulk-memory',
|
|
155
155
|
wasmFile,
|
|
156
|
-
], {
|
|
156
|
+
], {
|
|
157
|
+
env: {
|
|
158
|
+
...process.env,
|
|
159
|
+
WASMTIME_NEW_CLI: '0',
|
|
160
|
+
}
|
|
161
|
+
});
|
|
157
162
|
await pipeMMF(proc, mmf);
|
|
158
163
|
}).finally(() => {
|
|
159
164
|
fs.rmSync(wasmFile, {force: true});
|
package/dist/commands/bench.js
CHANGED
|
@@ -134,7 +134,7 @@ function startDfx(verbose = false) {
|
|
|
134
134
|
stopDfx(verbose);
|
|
135
135
|
let dir = path.join(getRootDir(), '.mops/.bench');
|
|
136
136
|
fs.writeFileSync(path.join(dir, 'dfx.json'), JSON.stringify(dfxJson(''), null, 2));
|
|
137
|
-
execSync('dfx start --background --clean' + (verbose ? '' : ' -qqqq'), { cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit'] });
|
|
137
|
+
execSync('dfx start --background --clean --artificial-delay 0' + (verbose ? '' : ' -qqqq'), { cwd: dir, stdio: ['inherit', verbose ? 'inherit' : 'ignore', 'inherit'] });
|
|
138
138
|
}
|
|
139
139
|
function stopDfx(verbose = false) {
|
|
140
140
|
let dir = path.join(getRootDir(), '.mops/.bench');
|
|
@@ -129,7 +129,12 @@ export async function testWithReporter(reporter, filter = '', mode = 'interprete
|
|
|
129
129
|
'--wasm-features',
|
|
130
130
|
'multi-memory,bulk-memory',
|
|
131
131
|
wasmFile,
|
|
132
|
-
], {
|
|
132
|
+
], {
|
|
133
|
+
env: {
|
|
134
|
+
...process.env,
|
|
135
|
+
WASMTIME_NEW_CLI: '0',
|
|
136
|
+
}
|
|
137
|
+
});
|
|
133
138
|
await pipeMMF(proc, mmf);
|
|
134
139
|
}).finally(() => {
|
|
135
140
|
fs.rmSync(wasmFile, { force: true });
|
package/dist/integrity.js
CHANGED
|
@@ -7,6 +7,9 @@ import { mainActor } from './api/actors.js';
|
|
|
7
7
|
import { resolvePackages } from './resolve-packages.js';
|
|
8
8
|
export async function checkIntegrity(lock) {
|
|
9
9
|
let force = !!lock;
|
|
10
|
+
if (!lock && !process.env['CI'] && fs.existsSync(path.join(getRootDir(), 'mops.lock'))) {
|
|
11
|
+
lock = 'save';
|
|
12
|
+
}
|
|
10
13
|
if (!lock) {
|
|
11
14
|
lock = process.env['CI'] ? 'check' : 'ignore';
|
|
12
15
|
}
|
package/dist/package.json
CHANGED
package/integrity.ts
CHANGED
|
@@ -15,6 +15,10 @@ type LockFileV1 = {
|
|
|
15
15
|
export async function checkIntegrity(lock?: 'save' | 'check' | 'ignore') {
|
|
16
16
|
let force = !!lock;
|
|
17
17
|
|
|
18
|
+
if (!lock && !process.env['CI'] && fs.existsSync(path.join(getRootDir(), 'mops.lock'))) {
|
|
19
|
+
lock = 'save';
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
if (!lock) {
|
|
19
23
|
lock = process.env['CI'] ? 'check' : 'ignore';
|
|
20
24
|
}
|