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

PB-1384 : modularize proj, number and coordinate utils #1227

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

pakb
Copy link
Contributor

@pakb pakb commented Jan 31, 2025

in prep work to the elevation profile module, I started modularizing what will be used by both the viewer and the future elevation profile component.

I used the opportunity of having a smaller scoped project to switch to Typescript entirely all the utilities. Migration to ESLint9 was also done here, meaning there are some changes because of new linter rules. Some ESLint8 plugins weren't available in ESLint9 so I had to find equivalents, but they don't have exactly the same way of linting

Test link

@pakb
Copy link
Contributor Author

pakb commented Jan 31, 2025

CI said FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I think we need more resources 🙃

Edit: switched to the next tier of virtual hardware for our CI

@pakb pakb force-pushed the feat-PB-1384-profile-npm-modules branch from 3a3778d to 31c921a Compare January 31, 2025 14:31
in prep work to the elevation profile module, I started modularizing what will be used by both the viewer and the future elevation profile component.

I used the opportunity of having a smaller scoped project to switch to Typescript entirely all the utilities.
Migration to ESLint9 was also done here, meaning there are some changes because of new linter rules. Some ESLint8 plugins weren't available in ESLint9 so I had to find equivalents, but they don't have exactly the same way of linting
@pakb pakb force-pushed the feat-PB-1384-profile-npm-modules branch from 31c921a to 9251368 Compare January 31, 2025 14:45
Copy link

cypress bot commented Jan 31, 2025

web-mapviewer    Run #4410

Run Properties:  status check failed Failed #4410  •  git commit 45ae933e3d: pre-building package geoadmin before previewing the mapviewer
Project web-mapviewer
Branch Review feat-PB-1384-profile-npm-modules
Run status status check failed Failed #4410
Run duration 07m 58s
Commit git commit 45ae933e3d: pre-building package geoadmin before previewing the mapviewer
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 5
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 228
View all changes introduced in this branch ↗︎

Tests for review

Failed  drawing.cy.js • 2 failed tests • e2e/electron/mobile

View Output

Test Artifacts
Drawing module tests > Drawing mode/tools > can create marker/icons and edit them Test Replay Screenshots
Drawing module tests > others > can switch from floating edit popup to back at bottom Test Replay Screenshots
Failed  layers.cy.js • 2 failed tests • e2e/electron/mobile

View Output

Test Artifacts
... > reads and adds an external WMTS correctly Test Replay Screenshots
... > layer with timestamp can be configured Test Replay Screenshots
Failed  print.cy.js • 1 failed test • e2e/electron/mobile

View Output

Test Artifacts
Testing print > Send print request with external layers > prints external WMTS correctly Test Replay Screenshots

pakb added 2 commits January 31, 2025 16:12
as we are running a preview on a "from scratch" CI instance, geoadmin package has never been built (and added to the local npm registry for that matter).
Building the lib with the same target in mind before running the preview script on the viewer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant