Skip to content

Commit

Permalink
Fix packages causing issue in perf tests (#148)
Browse files Browse the repository at this point in the history
run of pipeline with current changes

https://dev.azure.com/bentleycs/iModelTechnologies/_build/results?buildId=2674226&view=logs&j=f00c8391-4b58-558b-38c3-fbb5a056c798&t=a408a71b-b6e0-5eca-bfda-961fa4b876d3

---------

Co-authored-by: Daniel Rodriguez <DanRod1999@users.noreply.github.com>
  • Loading branch information
DanRod1999 and DanRod1999 authored Feb 14, 2024
1 parent a33c409 commit 16b681d
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"type": "node",
"request": "launch",
"name": "Unit tests",
"name": "Regression Tests",
"runtimeExecutable": "npm",
"cwd": "${workspaceFolder}/packages/performance-tests/",
"runtimeArgs": [
Expand Down
10 changes: 5 additions & 5 deletions packages/performance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clean": "rimraf lib",
"lint": "eslint \"./test/**/*.ts\" 1>&2",
"test": "mocha --delay --timeout 300000 --require ts-node/register test/**/*.test.ts",
"test-mocha": "mocha --delay --timeout 300000 \"./lib/**/TransformerRegression.test.js\"",
"test-mocha": "mocha --delay \"./lib/**/TransformerRegression.test.js\"",
"process-reports": "node scripts/process-reports"
},
"repository": {},
Expand All @@ -21,8 +21,8 @@
"@itwin/core-quantity": "^3.6.0 || ^4.0.0",
"@itwin/imodel-transformer": "workspace:*",
"@itwin/ecschema-metadata": "^3.6.0 || ^4.0.0",
"@itwin/imodels-access-backend": "^2.2.1",
"@itwin/imodels-client-authoring": "2.3.0",
"@itwin/imodels-access-backend": "^4.1.4",
"@itwin/imodels-client-authoring": "4.2.3",
"@itwin/node-cli-authorization": "~0.9.0",
"@itwin/perf-tools": "3.7.2",
"dotenv": "^10.0.0",
Expand All @@ -33,8 +33,8 @@
"devDependencies": {
"@itwin/build-tools": "^3.6.0 || ^4.0.0",
"@itwin/eslint-plugin": "^3.6.0 || ^4.0.0",
"@itwin/oidc-signin-tool": "^3.4.1",
"@itwin/projects-client": "^0.6.0",
"@itwin/oidc-signin-tool": "^4.3.2",
"@itwin/itwins-client": "^1.2.1",
"@types/chai": "^4.1.4",
"@types/fs-extra": "^4.0.7",
"@types/mocha": "^8.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/performance-tests/test/TestContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function *getTestIModels(filter: (iModel: TestIModel) => boolean) {
authorization: AccessTokenAdapter.toAuthorizationCallback(
await IModelHost.authorizationClient.getAccessToken()
),
urlParams: { projectId: iTwinId },
urlParams: { iTwinId },
});

for await (const iModel of iModels) {
Expand Down
4 changes: 2 additions & 2 deletions packages/transformer/src/test/TestUtils/IModelTestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class HubWrappers {
assert.isTrue(this.hubMock.isValid || openArgs.syncMode === SyncMode.PullOnly, "use HubMock to acquire briefcases");
while (true) {
try {
return (await RpcBriefcaseUtility.open(openArgs)) as BriefcaseDb;
return (await RpcBriefcaseUtility.open(openArgs)) as BriefcaseDb; // eslint-disable-line deprecation/deprecation
} catch (error) {
if (!(error instanceof RpcPendingResponse)) // eslint-disable-line deprecation/deprecation
throw error;
Expand Down Expand Up @@ -208,7 +208,7 @@ export class HubWrappers {

while (true) {
try {
return (await RpcBriefcaseUtility.open(openArgs));
return (await RpcBriefcaseUtility.open(openArgs)); // eslint-disable-line deprecation/deprecation
} catch (error) {
if (!(error instanceof RpcPendingResponse)) // eslint-disable-line deprecation/deprecation
throw error;
Expand Down
Loading

0 comments on commit 16b681d

Please sign in to comment.