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 dependency puppeteer to v22 (master) #9446

Merged
merged 5 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ contribs/dist: .build/build-dll.timestamp
python3 -m http.server 3001 &
touch $@

# Add --generate as argument to buildtools/check-example to regenerate the reference images
.build/%.check.timestamp: .build/examples-ngeo.timestamp \
.build/node_modules.timestamp \
.build/httpserver.timestamp
Expand All @@ -304,6 +305,7 @@ contribs/dist: .build/build-dll.timestamp
! buildtools/check-example .build/examples-hosted/error.html.png examples/error-ref.png
touch $@

# Add --generate as argument to buildtools/check-example to regenerate the reference images
.build/contribs/gmf/%.check.timestamp: .build/examples-gmf.timestamp \
.build/node_modules.timestamp \
.build/httpserver.timestamp
Expand All @@ -313,6 +315,7 @@ contribs/dist: .build/build-dll.timestamp
buildtools/check-example .build/examples-hosted/contribs/gmf/$*.html.png contribs/gmf/examples/$*-ref.png
touch $@

# Add --generate as argument to buildtools/check-example to regenerate the reference images
.build/contribs/gmf/apps/%.check.timestamp: .build/gmf-apps.timestamp \
.build/httpserver.timestamp
mkdir -p $(dir $@)
Expand Down
21 changes: 13 additions & 8 deletions buildtools/check-example
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import argparse
import os
import shutil
import subprocess
Expand All @@ -42,8 +43,14 @@ def main():
Optional mask image (name from Reference image): examples/simple-mask.png
Generate diff image (name from Generated image): .build/examples-hosted/simple-diff.png
"""
current = sys.argv[1]
ref = sys.argv[2]
parser = argparse.ArgumentParser(description=main.__doc__)
parser.add_argument("--generate", action="store_true", help="Regenerate the ref image")
parser.add_argument("current", help="The current image")
parser.add_argument("ref", help="The reference image")
args = parser.parse_args()

current = args.current
ref = args.ref
mask = ref.replace("-ref", "-mask")
diff = current.replace(".html.png", "-diff.png")
old_ref = ref
Expand All @@ -56,12 +63,10 @@ def main():
subprocess.run(["gm", "composite", "-compose", "Multiply", old_current, mask, current], check=True)
subprocess.run(["gm", "composite", "-compose", "Multiply", old_ref, mask, ref], check=True)

# Set to True to regenerate ref images
if False:
if "/error-" not in ref:
shutil.copyfile(current, old_ref)
shutil.copyfile(current, ref)
sys.exit(0)
if args.generate and "/error-" not in ref:
shutil.copyfile(current, old_ref)
shutil.copyfile(current, ref)
sys.exit(0)
result = subprocess.run(
[
"gm",
Expand Down
26 changes: 17 additions & 9 deletions buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,18 @@ function loaded(page, browser) {
request.headers().origin = 'http://localhost:3001';
}
console.log(`Request: ${url}`);
request.continue({
url,
headers: {
// Don't be intranet
'Forwarded': 'for=8.8.8.8;proto=https',
'Cache-Control': 'no-cache',
},
});
if (url.startsWith('http://localhost:') && url.endsWith('/favicon.ico')) {
request.respond(OSMImage);
} else {
request.continue({
url,
headers: {
// Don't be intranet
'Forwarded': 'for=8.8.8.8;proto=https',
'Cache-Control': 'no-cache',
},
});
}
}
} else if (
url.includes('tile.openstreetmap.org') ||
Expand Down Expand Up @@ -268,7 +272,11 @@ function loaded(page, browser) {
console.log(`Console ${type}`);
console.log(`On: ${location.url} ${location.lineNumber}:${location.columnNumber}.`);
console.log(message.text());
if (!message.text().includes('CORS')) {
if (
!message.text().includes('CORS') &&
!message.text().includes('Driver Message') &&
!message.text().includes('Password field is not contained in a form')
) {
await browser.close();
process.exit(2);
}
Expand Down
Binary file modified contribs/gmf/apps/desktop-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/apps/desktop_alt-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/apps/mobile-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/apps/mobile_alt-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/apps/oeedit-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/backgroundlayerselector-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/contextualdata-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/datepicker-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/displayquerygrid-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/displayquerywindow-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/drawfeature-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/elevation-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/featurestyle-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/importdatasource-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/layertree-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/layertreeadd-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/mobilemeasure-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/mouseposition-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/objectediting-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/objecteditinghub-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/permalink-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/print-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/profile-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/search-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/share-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contribs/gmf/examples/simple-ref.png
Binary file modified contribs/gmf/examples/themeselector-ref.png
Binary file modified contribs/gmf/examples/timeslider-ref.png
Binary file modified contribs/gmf/examples/wfspermalink-ref.png
Binary file modified contribs/gmf/examples/xsdattributes-ref.png
Binary file modified examples/animation-ref.png
Binary file modified examples/asitvd-ref.png
Binary file modified examples/attributes-ref.png
Binary file modified examples/backgroundlayer-ref.png
Binary file modified examples/backgroundlayerdropdown-ref.png
Binary file modified examples/colorpicker-ref.png
Binary file modified examples/control-ref.png
Binary file modified examples/createfeature-ref.png
Binary file modified examples/datepicker-ref.png
Binary file modified examples/datetimepicker-ref.png
Binary file modified examples/disclaimer-ref.png
Binary file modified examples/displaywindow-ref.png
Binary file modified examples/drawfeature-ref.png
Binary file modified examples/elevationProfile-ref.png
Binary file modified examples/googlestreetview-ref.png
Binary file modified examples/grid-ref.png
Binary file modified examples/importfeatures-ref.png
Binary file modified examples/interactionbtngroup-ref.png
Binary file modified examples/layerorder-ref.png
Binary file modified examples/locationsearch-ref.png
Binary file modified examples/mapfishprint-ref.png
Binary file modified examples/mapillarystreetview-ref.png
Binary file modified examples/mapswipe-ref.png
Binary file modified examples/mask-ref.png
Binary file modified examples/measure-ref.png
Binary file modified examples/mobilegeolocation-ref.png
Binary file modified examples/modal-ref.png
Binary file modified examples/modifycircle-ref.png
Binary file modified examples/modifyrectangle-ref.png
Binary file modified examples/notification-ref.png
Binary file modified examples/permalink-ref.png
Binary file modified examples/popover-ref.png
Binary file modified examples/popupservice-ref.png
Binary file modified examples/query-ref.png
Binary file modified examples/recenter-ref.png
Binary file modified examples/rotate-ref.png
Binary file modified examples/routing-ref.png
Binary file modified examples/scaleselector-ref.png
Binary file modified examples/search-ref.png
Binary file modified examples/simple-ref.png
Binary file modified examples/svg-ref.png
Binary file modified examples/toolActivate-ref.png
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"parse-absolute-css-unit": "1.0.2",
"@popperjs/core": "2.11.8",
"proj4": "2.11.0",
"puppeteer": "21.11.0",
"puppeteer": "22.15.0",
"qruri": "0.0.4",
"raw-loader": "4.0.2",
"react": "18.3.1",
Expand Down
Loading