Skip to content

Commit

Permalink
Merge pull request #9518 from camptocamp/renovate/master-major-24-ci-…
Browse files Browse the repository at this point in the history
…dependencies

Update dependency ubuntu to v24 (master)
  • Loading branch information
sbrunner authored Oct 31, 2024
2 parents 1c68af2 + 2c2616c commit c98e0d1
Show file tree
Hide file tree
Showing 76 changed files with 28 additions and 11 deletions.
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:
- run: /opt/google/chrome/chrome --version
Expand Down Expand Up @@ -114,7 +115,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 @@ -132,6 +136,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 @@ -222,7 +231,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

0 comments on commit c98e0d1

Please sign in to comment.