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

Update all packages to their latest release #610

Merged
merged 2 commits into from
Sep 22, 2022

Conversation

acalcutt
Copy link
Collaborator

@acalcutt acalcutt commented Sep 21, 2022

This updates all the packages to their latest release. I think it is important to update these packages and fix our vulnerabilities before out 4.0.0 docker release. Due to the sharp update, the minimum node is 14.15.0 after the updates.

root@mapgen2:/opt/test7/tileserver-gl# npm i
up to date, audited 497 packages in 1s

72 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
root@mapgen2:/opt/test7/tileserver-gl# xvfb-run --server-args="-screen 0 1024x768x24" npm test

> tileserver-gl@3.1.1 test
> mocha test/**.js --timeout 10000



global setup
Starting server
Listening at http://[::]:8888/
Startup complete
  Metadata
    /health
      ✔ returns 200
    /index.json is array of TileJSONs
      ✔ is json
      ✔ is non-empty array
    /rendered.json is array of TileJSONs
      ✔ is json
      ✔ is non-empty array
    /data.json is array of TileJSONs
      ✔ is json
      ✔ is non-empty array
    /styles.json is valid array
      ✔ is json
      ✔ contains valid item
    /styles/test-style.json is TileJSON
      ✔ is json
      ✔ has valid tiles
    /data/openmaptiles.json is TileJSON
      ✔ is json
      ✔ has valid tiles

  Static endpoints
    center-based
      valid requests
        various formats
          ✔ /styles/test-style/static/0,0,0/256x256.png returns 200 (148ms)
          ✔ /styles/test-style/static/0,0,0/256x256.jpg returns 200 (92ms)
          ✔ /styles/test-style/static/0,0,0/256x256.jpeg returns 200 (85ms)
          ✔ /styles/test-style/static/0,0,0/256x256.webp returns 200 (89ms)
        different parameters
          ✔ /styles/test-style/static/0,0,0/300x300@2x.png returns 200 (190ms)
          ✔ /styles/test-style/static/0,0,0/300x300@3x.png returns 200 (334ms)
          ✔ /styles/test-style/static/0,0,1.5/256x256.png returns 200 (51ms)
          ✔ /styles/test-style/static/80,40,20/600x300@3x.png returns 200 (47ms)
          ✔ /styles/test-style/static/8.5,40.5,20/300x150@3x.png returns 200
          ✔ /styles/test-style/static/-8.5,-40.5,20/300x150@3x.png returns 200
          ✔ /styles/test-style/static/8,40,2@0,0/300x150.png returns 200 (46ms)
          ✔ /styles/test-style/static/8,40,2@180,45/300x150@2x.png returns 200 (47ms)
          ✔ /styles/test-style/static/8,40,2@10/300x150@3x.png returns 200
          ✔ /styles/test-style/static/8,40,2@10.3,20.4/300x300.png returns 200 (46ms)
          ✔ /styles/test-style/static/0,0,2@390,120/300x300.png returns 200 (45ms)
      invalid requests return 4xx
        ✔ /styles/test-style/static/190,0,0/256x256.png returns 400
        ✔ /styles/test-style/static/0,86,0/256x256.png returns 400
        ✔ /styles/test-style/static/80,40,20/0x0.png returns 400
        ✔ /styles/test-style/static/0,0,0/256x256.gif returns 400
        ✔ /styles/test-style/static/0,0,0/256x256@1x.png returns 404
        ✔ /styles/test-style/static/0,0,-1/256x256.png returns 404
        ✔ /styles/test-style/static/0,0,0/256.5x256.5.png returns 404
        ✔ /styles/test-style/static/0,0,0,/256x256.png returns 404
        ✔ /styles/test-style/static/0,0,0,0,/256x256.png returns 404
    area-based
      valid requests
        various formats
          ✔ /styles/test-style/static/-180,-80,180,80/10x10.png returns 200
          ✔ /styles/test-style/static/-180,-80,180,80/10x10.jpg returns 200
          ✔ /styles/test-style/static/-180,-80,180,80/10x10.jpeg returns 200
          ✔ /styles/test-style/static/-180,-80,180,80/10x10.webp returns 200
        different parameters
          ✔ /styles/test-style/static/-180,-90,180,90/20x20@2x.png returns 200 (38ms)
          ✔ /styles/test-style/static/0,0,1,1/200x200@3x.png returns 200
          ✔ /styles/test-style/static/-280,-80,0,80/280x160.png returns 200
      invalid requests return 4xx
        ✔ /styles/test-style/static/0,87,1,88/5x2.png returns 400
        ✔ /styles/test-style/static/0,0,1,1/1x1.gif returns 400
        ✔ /styles/test-style/static/-180,-80,180,80/0.5x2.6.png returns 404
    autofit path
      valid requests
        ✔ /styles/test-style/static/auto/256x256.png?path=10,10|20,20 returns 200
        different parameters
          ✔ /styles/test-style/static/auto/20x20@2x.png?path=10,10|20,20 returns 200 (46ms)
          ✔ /styles/test-style/static/auto/200x200@3x.png?path=-10,-10|-20,-20 returns 200 (51ms)
      invalid requests return 4xx
        ✔ /styles/test-style/static/auto/256x256.png returns 400
        ✔ /styles/test-style/static/auto/256x256.png?path=10,10 returns 400
        ✔ /styles/test-style/static/auto/2560x2560.png?path=10,10|20,20 returns 400 (218ms)

  Styles
    /styles/test-style/style.json is valid style
      ✔ /styles/test-style/style.json return 200 and is /application\/json/
      ✔ contains expected properties
    /styles/streets/style.json is not served
      ✔ /styles/streets/style.json return 404 and is /./
    /styles/test-style/sprite[@2x].{format}
      ✔ /styles/test-style/sprite.json return 200 and is /application\/json/
      ✔ /styles/test-style/sprite@2x.json return 200 and is /application\/json/
      ✔ /styles/test-style/sprite.png return 200 and is /image\/png/
      ✔ /styles/test-style/sprite@2x.png return 200 and is /image\/png/

  Fonts
    ✔ /fonts/Open Sans Bold/0-255.pbf return 200 and is /application\/x-protobuf/
    ✔ /fonts/Open Sans Regular/65280-65535.pbf return 200 and is /application\/x-protobuf/
    ✔ /fonts/Open Sans Bold,Open Sans Regular/0-255.pbf return 200 and is /application\/x-protobuf/
    ✔ /fonts/Nonsense,Open Sans Bold/0-255.pbf return 400 and is /./
    ✔ /fonts/Nonsense/0-255.pbf return 400 and is /./
    ✔ /fonts/Nonsense1,Nonsense2/0-255.pbf return 400 and is /./

  Vector tiles
    existing tiles
      ✔ /data/openmaptiles/0/0/0.pbf returns 200
      ✔ /data/openmaptiles/14/8581/5738.pbf returns 200
    non-existent requests return 4xx
      ✔ /data/non_existent/0/0/0.pbf returns 404
      ✔ /data/openmaptiles/-1/0/0.pbf returns 404
      ✔ /data/openmaptiles/20/0/0.pbf returns 404
      ✔ /data/openmaptiles/0/1/0.pbf returns 404
      ✔ /data/openmaptiles/0/0/1.pbf returns 404
      ✔ /data/openmaptiles/14/0/0.pbf returns 204

  Raster tiles
    valid requests
      various formats
        ✔ /styles/test-style/0/0/0.png returns 200 (84ms)
        ✔ /styles/test-style/0/0/0.jpg returns 200 (70ms)
        ✔ /styles/test-style/0/0/0.jpeg returns 200 (85ms)
        ✔ /styles/test-style/0/0/0.webp returns 200 (84ms)
      different coordinates and scales
        ✔ /styles/test-style/1/1/1.png returns 200 (49ms)
        ✔ /styles/test-style/0/0/0@2x.png returns 200 (133ms)
        ✔ /styles/test-style/0/0/0@3x.png returns 200 (243ms)
        ✔ /styles/test-style/2/1/1@3x.png returns 200
    invalid requests return 4xx
      ✔ /styles/non_existent/0/0/0.png returns 404
      ✔ /styles/test-style/-1/0/0.png returns 404
      ✔ /styles/test-style/25/0/0.png returns 404
      ✔ /styles/test-style/0/1/0.png returns 404
      ✔ /styles/test-style/0/0/1.png returns 404
      ✔ /styles/test-style/0/0/0.gif returns 400
      ✔ /styles/test-style/0/0/0.pbf returns 400
      ✔ /styles/test-style/0/0/0@1x.png returns 404
      ✔ /styles/test-style/0/0/0@5x.png returns 404

global teardown

  91 passing (4s)

Done

@acalcutt acalcutt requested a review from petrsloup September 21, 2022 20:46
@acalcutt acalcutt merged commit 6a8ced5 into maptiler:master Sep 22, 2022
@acalcutt acalcutt mentioned this pull request Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants