-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Continuous integration
committed
Oct 31, 2024
1 parent
287810e
commit 17444a3
Showing
24 changed files
with
361 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
The `create.diff` file is a recommendation of the changes that you should apply to your project. | ||
You should apply the changes shown in the diff file on `CONST_create_template/<file>` on your project's `<file>`. | ||
Some advice to be more efficient: if the changes on a file concern a file that you never customize, you can simply copy the new file from `CONST_create_template` (`cp CONST_create_template/<file> <file>`).You can furthermore add this file to the `unmanaged_files` section of the `project.yaml` file, to avoid its contents appearing in the diff file for the next upgrade. | ||
Note that you can also apply them using: git apply --3way create.diff | ||
To continue, type: | ||
./upgrade 2.9 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
# The list (by include, exclude) of default files that will not be overwritten by the upgrade. | ||
# That that can be extended with managed_files or reduced with unmanaged_files from the | ||
# project.yaml file in the project root directory. | ||
default_project_file: | ||
include: | ||
- geoportal/setup\.py | ||
- geoportal/vars\.yaml | ||
- geoportal/Makefile | ||
- geoportal/geomapfish_geoportal/__init__\.py | ||
- geoportal/geomapfish_geoportal/templates/.* | ||
- geoportal/geomapfish_geoportal/locale/.* | ||
- geoportal/geomapfish_geoportal/static/.* | ||
- geoportal/geomapfish_geoportal/static-ngeo/.* | ||
- print/print-apps/.* | ||
- mapserver/.* | ||
- tilegeneration/config\.yaml\.tmpl | ||
- project\.yaml | ||
- docker-compose\.yaml | ||
- env\.project | ||
- README\.rst | ||
- \.github/workflows/main\.yaml | ||
- \.github/workflows/rebuild\.yaml | ||
exclude: | ||
- mapserver/demo\.map\.tmpl | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/image/favicon\.ico | ||
|
||
# Files ignored when creating the diff files => will just be left untouched. | ||
no_diff: | ||
- .*\.po | ||
- CONST_.+ | ||
- .*/CONST_.+ | ||
|
||
# Files that will be present in the CONST_create_template but will not be considered in the upgrade. | ||
# Used to provide the alt applications => does not disturb the user during upgrade. | ||
extra: | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/mobile_alt\.html\.ejs | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/oeedit\.html\.ejs | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/Controllermobile_alt\.js | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/Controlleroeedit\.js | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/mobile_alt\.scss | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/vars_mobile_alt\.scss | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/oeedit\.scss | ||
- geoportal/geomapfish_geoportal/static-ngeo/js/apps/sass/vars_oeedit\.scss | ||
- geoportal/interfaces/desktop_alt\.html\.mako | ||
- geoportal/geomapfish_geoportal/static/images/background-layer-button\.png | ||
- tests/test_testapp.py | ||
|
||
# Automated file system operations: | ||
# Remove some files or directories: | ||
# - action: remove | ||
# paths: | ||
# - <one file or directory> | ||
# Move a file: | ||
# - action: move | ||
# from: <src file> | ||
# to: <dst file> | ||
upgrade_files: | ||
- action: remove | ||
paths: | ||
- geoportal/tools/extract-messages.js | ||
- action: move | ||
from: geoportal/lingua-server.cfg | ||
to: geoportal/lingva-server.cfg | ||
- action: move | ||
from: geoportal/lingua-client.cfg | ||
to: geoportal/lingva-client.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ const config = commons({ | |
context: '/usr/lib/', | ||
}, | ||
noTs: true, | ||
nodll: true, | ||
}); | ||
|
||
module.exports = () => config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
diff --git a/Dockerfile b/Dockerfile | ||
index 53ec97d..e2538a0 100644 | ||
--- a/Dockerfile | ||
+++ b/Dockerfile | ||
@@ -14,7 +14,7 @@ ENV CONFIG_VARS sqlalchemy.url sqlalchemy.pool_recycle sqlalchemy.pool_size sqla | ||
dbsessions urllogin host_forward_host headers_whitelist headers_blacklist \ | ||
smtp c2c.base_path welcome_email \ | ||
lingva_extractor interfaces_config interfaces devserver_url api authentication intranet metrics pdfreport \ | ||
- vector_tiles i18next main_ogc_server | ||
+ vector_tiles i18next main_ogc_server static_files | ||
|
||
COPY . /tmp/config/ | ||
|
||
diff --git a/docker-compose.override.sample.yaml b/docker-compose.override.sample.yaml | ||
index c70e4d5..52ac887 100644 | ||
--- a/docker-compose.override.sample.yaml | ||
+++ b/docker-compose.override.sample.yaml | ||
@@ -12,7 +12,7 @@ services: | ||
# - ./../c2cgeoportal/geoportal/c2cgeoportal_geoportal:/opt/c2cgeoportal/geoportal/c2cgeoportal_geoportal | ||
# - ./../c2cgeoportal/admin/c2cgeoportal_admin:/opt/c2cgeoportal/admin/c2cgeoportal_admin | ||
command: | ||
- - /usr/local/bin/pserve | ||
+ - /venv/bin/pserve | ||
- --reload | ||
- c2c:///app/development.ini | ||
environment: | ||
diff --git a/geoportal/Dockerfile b/geoportal/Dockerfile | ||
index 756233f..2706c3b 100644 | ||
--- a/geoportal/Dockerfile | ||
+++ b/geoportal/Dockerfile | ||
@@ -41,7 +41,7 @@ RUN chmod go+w /etc/static-ngeo/ | ||
|
||
RUN --mount=type=cache,target=/root/.cache \ | ||
python3 -m pip install --disable-pip-version-check --editable=/app/ \ | ||
- && python3 -m compileall -q /usr/local/lib/python3.* \ | ||
+ && python3 -m compileall -q /venv/lib/python3.* \ | ||
-x '/(ptvsd|.*pydev.*|networkx|scaffolds|yaml_include)/' \ | ||
&& python3 -m compileall -q /app/geomapfish_geoportal -x /app/geomapfish_geoportal/static.* \ | ||
&& pip freeze > /requirements.txt | ||
diff --git a/tests/test_app.py b/tests/test_app.py | ||
index f4f246b..c60a3ed 100644 | ||
--- a/tests/test_app.py | ||
+++ b/tests/test_app.py | ||
@@ -1,3 +1,5 @@ | ||
+import time | ||
+ | ||
import pytest | ||
import requests | ||
|
||
@@ -25,7 +27,12 @@ import requests | ||
) | ||
def test_url(url: str, params: dict[str, str], timeout: int) -> None: | ||
"""Tests that some URL didn't return an error.""" | ||
- response = requests.get(url, params=params, verify=False, timeout=timeout) # nosec | ||
+ for _ in range(6): | ||
+ response = requests.get(url, params=params, verify=False, timeout=timeout) # nosec | ||
+ if response.status_code == 503: | ||
+ time.sleep(1) | ||
+ continue | ||
+ break | ||
assert response.status_code == 200, response.text | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.