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 ubuntu to v24 (master) #9518

Merged
merged 5 commits into from
Oct 31, 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
2 changes: 1 addition & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
backport:
name: Backport
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean-ghpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
clean:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
name: Clean GitHub pages
timeout-minutes: 5
concurrency: gh-pages-push
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
jobs:
not-failed-backport:
name: Test that's not a failed backport
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
Expand All @@ -28,12 +28,13 @@ jobs:

main:
name: Continuous integration
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 50
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"

env:
PATH: /bin:/usr/bin:/usr/local/bin:/home/runner/.local/bin
REGENERATE_EXAMPLES: 'false'

steps:
- name: GitHub event
Expand Down Expand Up @@ -115,7 +116,10 @@ jobs:
NODE_OPTIONS: --openssl-legacy-provider
if: github.event_name != 'pull_request_target'
- run: make check-examples-checker
if: github.event_name != 'pull_request_target'
if: |
github.event_name != 'pull_request_target'
&& env.REGENERATE_EXAMPLES == 'false'

# Cypress tests
- run: make serve-gmf-apps &
if: github.event_name != 'pull_request_target'
Expand All @@ -133,6 +137,11 @@ jobs:
NODE_OPTIONS: --openssl-legacy-provider
- run: make check-examples
if: github.event_name != 'pull_request_target'
- run: |
rm examples/error-ref.png
find . ! -name *-ref.png -type f -exec rm {} \;
if: env.REGENERATE_EXAMPLES == 'true'
- run: '[ ${REGENERATE_EXAMPLES} == false ]'
- uses: actions/upload-artifact@v4
with:
name: Examples
Expand Down Expand Up @@ -223,7 +232,7 @@ jobs:

gh-pages:
name: Github Pages
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 10
concurrency: gh-pages-push
needs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
auto-merge:
name: Auto reviews pull requests from bots
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ contribs/dist: .build/build-dll.timestamp
mkdir -p $(dir $@)
CI=true LANGUAGE=en_US buildtools/retry node buildtools/check-example.js \
.build/examples-hosted/error.html
! buildtools/check-example .build/examples-hosted/error.html.png examples/error-ref.png
# Only if REGENERATE_EXAMPLES is not true
! ( [ ${REGENERATE_EXAMPLES} != true ] && 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
Expand Down
13 changes: 10 additions & 3 deletions buildtools/check-example
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,16 @@ def main():
stdout=subprocess.PIPE,
)
result = float(result.stdout.decode().splitlines()[-1].split()[1])
if result > 0.01:
print(f"{result} > 0.01 => {diff}")
sys.exit(1)
if os.environ.get("REGENERATE_EXAMPLES") == "true":
if result > 0:
shutil.copyfile(current, old_ref)
print(f"::error file={old_ref}:: Regenerate the ref image: {old_ref}")
else:
os.remove(old_ref)
else:
if result > 0.01:
print(f"{result} > 0.01 => {diff}")
sys.exit(1)


if __name__ == "__main__":
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/iframe_api-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
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/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/toolActivate-ref.png
Loading