Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix RenderingAsset::Relocate #157

Merged
merged 5 commits into from
Feb 15, 2023
Merged

Conversation

MichaelBelousov
Copy link
Contributor

@MichaelBelousov MichaelBelousov commented Feb 10, 2023

fix RenderingAsset::Relocate for use by the transformer.

sibling PR with tests: iTwin/itwinjs-core#5059
itwinjs-core: https://github.com/iTwin/itwinjs-core/tree/fix-transformer-texture-remapping

@MichaelBelousov MichaelBelousov marked this pull request as ready for review February 10, 2023 19:33
@pmconne
Copy link
Member

pmconne commented Feb 14, 2023

@MichaelBelousov what's this waiting on?

@MichaelBelousov
Copy link
Contributor Author

MichaelBelousov commented Feb 14, 2023

@MichaelBelousov what's this waiting on?

flaky tests (mostly https://github.com/iTwin/itwinjs-backlog/issues/560). Last attempt just failed due to what looked like arcgis test changes, but this branch was out of date so just updated it.

@MichaelBelousov
Copy link
Contributor Author

@mdastous-bentley @eringram @DanRod1999

Both PR branches are up to date, but I am getting a new cross-platform test failure as of this morning.

--[ FAILURE: @itwin/map-layers-formats ]--------------------[ 18.19 seconds ]--

(node:16256) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

  67 passing (476ms)
  2 failing

  1) ArcGisFeaturePBF
       should log error when readAndRender /  readFeatureInfo is called invalid response Data:
     Error: Assert: Programmer Error
      at assert (D:\vsts_a\126\s\core\bentley\src\Assert.ts:46:9)
  ...4 lines omitted...
  2) ArcGisFeatureProvider
       fetchTile should return undefined when to format defined:
     Error: Assert: Programmer Error
      at assert (D:\vsts_a\126\s\core\bentley\src\Assert.ts:46:9)
      at ArcGisFeatureProvider.fetchTile (src\ArcGisFeature\ArcGisFeatureProvider.ts:45:32)
      at Context.<anonymous> (src\test\ArcGisFeature\ArcGisFeatureProvider.test.ts:769:46)
      at processImmediate (node:internal/timers:471:21)

Any ideas why PR validation might be failing this test? Couldn't reproduce locally with this branch.

@pmconne
Copy link
Member

pmconne commented Feb 14, 2023

@MichaelBelousov assertions only trigger if NODE_ENV=development. Do you have that set locally? We very recently started setting it for CI jobs, to catch failed assertions during tests.

@MichaelBelousov
Copy link
Contributor Author

@MichaelBelousov assertions only trigger if NODE_ENV=development. Do you have that set locally? We very recently started setting it for CI jobs, to catch failed assertions during tests.

good point. rerunning.

@MichaelBelousov
Copy link
Contributor Author

MichaelBelousov commented Feb 14, 2023

@pmconne you're right, now it fails.
Pulling and running on imodel02

@pmconne
Copy link
Member

pmconne commented Feb 14, 2023

FYI PR to enable assertions during tests included fix for at least one of your failing tests.

  1) ArcGisFeatureProvider
       fetchTile should return undefined when to format defined:
     Error: Assert: Programmer Error
      at assert (D:\vsts_a\4\s\core\bentley\src\Assert.ts:46:9)
      at ArcGisFeatureProvider.fetchTile (src\ArcGisFeature\ArcGisFeatureProvider.ts:45:32)
      at Context.<anonymous> (src\test\ArcGisFeature\ArcGisFeatureProvider.test.ts:769:46)
      at processImmediate (node:internal/timers:471:21)

@MichaelBelousov
Copy link
Contributor Author

MichaelBelousov commented Feb 14, 2023

it also fails on imodel02 locally

@MichaelBelousov
Copy link
Contributor Author

ok I'll just try backporting that PR to imodel02 then

@MichaelBelousov
Copy link
Contributor Author

MichaelBelousov commented Feb 15, 2023

@khanaffan @ColinKerr

Something seems broken on imodel02, any idea what could have caused this?

I'm deterministically getting on all CI platform builds and locally:

--[ FAILURE: @itwin/core-backend ]-----------------[ 2 minutes 55.4 seconds ]--

  379 passing (3m)
  1 failing

  1) ECSqlStatement
       getRow() with navigation properties and relationships:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true
      
      at /agent/_work/1/s/core/backend/src/test/ecdb/ECSqlStatement.test.ts:2298:16
      at query (src/test/ecdb/ECSqlStatement.test.ts:24:7)
      at async /agent/_work/1/s/core/backend/src/test/ecdb/ECSqlStatement.test.ts:2292:20

row is:

{
"name":"Child 1",
"parent.id":"0x1",
"parent.relClassName":"Test.ParentHasChildren",
"myParentId":"0x1",
"myParentRelClassId":"Test.ParentHasChildren"
}

where myParentRelClassId is Test.ParentHasChildren, obviously not an id64.

@khanaffan
Copy link
Contributor

@RohitPtnkr1996 This PR #146 may have caused this issue.

@MichaelBelousov
Copy link
Contributor Author

@pmconne maybe we should consider merging this since imodel02 has this issue directly, and @RohitPtnkr1996 can investigate fixing that?

@pmconne
Copy link
Member

pmconne commented Feb 15, 2023

@RohitPtnkr1996 @khanaffan or @ColinKerr please fix or revert #146 ASAP, it will block us from producing a new addon.

@pmconne pmconne merged commit 38a72ad into main Feb 15, 2023
@pmconne pmconne deleted the fix-transformer-texture-remapping branch February 15, 2023 17:24
@RohitPtnkr1996
Copy link
Contributor

I'm looking into the failure.
I'll have it fixed soon.

ArturasDeltuvas pushed a commit that referenced this pull request Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants