From c16f0610d231fe937183e7f3a8e2da31b416384a Mon Sep 17 00:00:00 2001 From: James Rogers Date: Tue, 3 Nov 2026 11:13:31 +0000 Subject: [PATCH 1/9] Run the .NET consumer test against 51degrees-dotnet pipeline-dotnet has moved into 51degrees-dotnet, under pipeline/. The consumer test checks out the monorepo with its direct submodules, swaps the files under review into their new folder and runs the same test project from pipeline/, whose global.json pins the .NET 8 SDK. --- .github/workflows/consumer-tests.yml | 25 ++++++++++++++----------- README.md | 4 ++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/consumer-tests.yml b/.github/workflows/consumer-tests.yml index 5783b8e..7a9ac93 100644 --- a/.github/workflows/consumer-tests.yml +++ b/.github/workflows/consumer-tests.yml @@ -25,7 +25,7 @@ on: workflow_dispatch: inputs: pipeline-dotnet-ref: - description: Branch, tag or SHA of pipeline-dotnet to test against + description: Branch, tag or SHA of 51degrees-dotnet to test against required: false default: main pipeline-java-ref: @@ -54,7 +54,7 @@ permissions: jobs: pipeline-dotnet: - name: pipeline-dotnet JavaScript builder + name: 51degrees-dotnet JavaScript builder runs-on: ubuntu-latest steps: - name: Check out the template under review @@ -62,28 +62,30 @@ jobs: with: path: template - - name: Check out pipeline-dotnet + - name: Check out 51degrees-dotnet uses: actions/checkout@v4 with: - repository: 51Degrees/pipeline-dotnet + repository: 51Degrees/51degrees-dotnet ref: ${{ inputs.pipeline-dotnet-ref || 'main' }} - submodules: recursive + # The Pipeline API packages are under pipeline/ and need only the + # direct submodules, not the data files under cxx/. + submodules: true path: consumer - name: Swap in the template under review run: | set -euo pipefail - dest=consumer/FiftyOne.Pipeline.Elements/FiftyOne.Pipeline.JavaScriptBuilderElement/Templates + dest=consumer/pipeline/JavaScriptBuilderElement/Templates if [ ! -d "$dest" ]; then echo "::error::$dest is missing - the submodule has moved and this workflow needs updating" exit 1 fi cp template/*.mustache "$dest/" # The templates are embedded resources. If the copy changed nothing - # then the run would exercise the revision pipeline-dotnet pins and + # then the run would exercise the revision 51degrees-dotnet pins and # report a pass that says nothing about this pull request. if git -C "$dest" diff --quiet; then - echo "::notice::identical to the revision pipeline-dotnet pins, nothing swapped in" + echo "::notice::identical to the revision 51degrees-dotnet pins, nothing swapped in" else git -C "$dest" --no-pager diff --stat fi @@ -98,10 +100,11 @@ jobs: chromedriver --version || echo "::warning::no chromedriver on the runner" - name: Run the JavaScript builder tests - working-directory: consumer + # pipeline/global.json pins the .NET 8 SDK installed above. + working-directory: consumer/pipeline run: > dotnet test -c Release - FiftyOne.Pipeline.Elements/FiftyOne.Pipeline.JavaScriptBuilderElementTests/FiftyOne.Pipeline.JavaScriptBuilderElementTests.csproj + Tests/JavaScriptBuilderElementTests/FiftyOne.Pipeline.JavaScriptBuilderElementTests.csproj --logger "console;verbosity=normal" --logger "trx;LogFileName=results.trx" @@ -109,7 +112,7 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: pipeline-dotnet-results + name: 51degrees-dotnet-results path: consumer/**/TestResults/*.trx if-no-files-found: warn diff --git a/README.md b/README.md index 374cc50..a11181b 100644 --- a/README.md +++ b/README.md @@ -159,13 +159,13 @@ Run it with Node 24 from the `tests` directory. Each check prints a line and the last line gives the totals. The `Template tests` workflow runs the same command on every pull request, and -the `Consumer tests` workflow builds pipeline-dotnet against the template and +the `Consumer tests` workflow builds 51degrees-dotnet against the template and runs the tests that drive it in a real browser. ## Shipping / Deployment This repo is not a stand-alone package, but is shipped as part of and used by each of the following repositories / packages: -- [pipeline-dotnet](https://github.com/51Degrees/pipeline-dotnet) as a submodule +- [51degrees-dotnet](https://github.com/51Degrees/51degrees-dotnet) as a submodule - [pipeline-java](https://github.com/51Degrees/pipeline-java) as a submodule - [pipeline-node](https://github.com/51Degrees/pipeline-node) as a submodule - [pipeline-python](https://github.com/51Degrees/pipeline-python) as a submodule From 0320d632cc153b10c924971d70dc584cd4e8a348 Mon Sep 17 00:00:00 2001 From: Eugene Dorfman Date: Tue, 3 Nov 2026 15:30:39 +0100 Subject: [PATCH 2/9] Build the Node consumer test from 51degrees-node --- .github/workflows/consumer-tests.yml | 18 ++++++++++-------- README.md | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/consumer-tests.yml b/.github/workflows/consumer-tests.yml index 5783b8e..ef437b2 100644 --- a/.github/workflows/consumer-tests.yml +++ b/.github/workflows/consumer-tests.yml @@ -33,7 +33,7 @@ on: required: false default: main pipeline-node-ref: - description: Branch, tag or SHA of pipeline-node to test against + description: Branch, tag or SHA of 51degrees-node to test against required: false default: main pipeline-python-ref: @@ -175,7 +175,7 @@ jobs: if-no-files-found: warn pipeline-node: - name: pipeline-node JavaScript builder + name: 51degrees-node JavaScript builder runs-on: ubuntu-latest steps: - name: Check out the template under review @@ -183,25 +183,27 @@ jobs: with: path: template - - name: Check out pipeline-node + - name: Check out 51degrees-node uses: actions/checkout@v4 with: - repository: 51Degrees/pipeline-node + repository: 51Degrees/51degrees-node ref: ${{ inputs.pipeline-node-ref || 'main' }} - submodules: recursive + # The Pipeline API packages are under pipeline/ and need only the + # direct submodules, not the data files under cxx/. + submodules: true path: consumer - name: Swap in the template under review run: | set -euo pipefail - dest=consumer/fiftyone.pipeline.core/javascript-templates + dest=consumer/pipeline/fiftyone.pipeline.core/javascript-templates if [ ! -d "$dest" ]; then echo "::error::$dest is missing - the submodule has moved and this workflow needs updating" exit 1 fi cp template/*.mustache "$dest/" if git -C "$dest" diff --quiet; then - echo "::notice::identical to the revision pipeline-node pins, nothing swapped in" + echo "::notice::identical to the revision 51degrees-node pins, nothing swapped in" else git -C "$dest" --no-pager diff --stat fi @@ -211,7 +213,7 @@ jobs: node-version: '22' - name: Run the JavaScript builder tests - working-directory: consumer/fiftyone.pipeline.core + working-directory: consumer/pipeline/fiftyone.pipeline.core run: | set -euo pipefail npm install diff --git a/README.md b/README.md index 374cc50..6a7621c 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ runs the tests that drive it in a real browser. This repo is not a stand-alone package, but is shipped as part of and used by each of the following repositories / packages: - [pipeline-dotnet](https://github.com/51Degrees/pipeline-dotnet) as a submodule - [pipeline-java](https://github.com/51Degrees/pipeline-java) as a submodule -- [pipeline-node](https://github.com/51Degrees/pipeline-node) as a submodule +- [51degrees-node](https://github.com/51Degrees/51degrees-node) as a submodule, under `pipeline/` - [pipeline-python](https://github.com/51Degrees/pipeline-python) as a submodule - [pipeline-php-core](https://github.com/51Degrees/pipeline-php-core) as a static dependency From bd453e5975ae9ba4751269cc8a749dbe712090fc Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Tue, 3 Nov 2026 16:32:27 +0000 Subject: [PATCH 3/9] Test the Python consumer from 51degrees-python pipeline-python has moved into 51degrees-python, where the Pipeline API packages are under pipeline/. Check out the monorepo with only its direct submodules, so the cxx data files are not fetched, and swap the template in at its new path. --- .github/workflows/consumer-tests.yml | 18 ++++++++++-------- README.md | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/consumer-tests.yml b/.github/workflows/consumer-tests.yml index 5783b8e..e013a10 100644 --- a/.github/workflows/consumer-tests.yml +++ b/.github/workflows/consumer-tests.yml @@ -37,7 +37,7 @@ on: required: false default: main pipeline-python-ref: - description: Branch, tag or SHA of pipeline-python to test against + description: Branch, tag or SHA of 51degrees-python to test against required: false default: main pipeline-php-core-ref: @@ -218,7 +218,7 @@ jobs: npx jest tests/javascriptbuilder.test.js pipeline-python: - name: pipeline-python JavaScript builder + name: 51degrees-python JavaScript builder runs-on: ubuntu-latest steps: - name: Check out the template under review @@ -226,25 +226,27 @@ jobs: with: path: template - - name: Check out pipeline-python + - name: Check out 51degrees-python uses: actions/checkout@v4 with: - repository: 51Degrees/pipeline-python + repository: 51Degrees/51degrees-python ref: ${{ inputs.pipeline-python-ref || 'main' }} - submodules: recursive + # The Pipeline API packages are under pipeline/ and need only the + # direct submodules, not the data files under cxx/. + submodules: true path: consumer - name: Swap in the template under review run: | set -euo pipefail - dest=consumer/fiftyone_pipeline_core/src/fiftyone_pipeline_core/js_templates + dest=consumer/pipeline/fiftyone_pipeline_core/src/fiftyone_pipeline_core/js_templates if [ ! -d "$dest" ]; then echo "::error::$dest is missing - the submodule has moved and this workflow needs updating" exit 1 fi cp template/*.mustache "$dest/" if git -C "$dest" diff --quiet; then - echo "::notice::identical to the revision pipeline-python pins, nothing swapped in" + echo "::notice::identical to the revision 51degrees-python pins, nothing swapped in" else git -C "$dest" --no-pager diff --stat fi @@ -254,7 +256,7 @@ jobs: python-version: '3.13' - name: Run the JavaScript builder tests - working-directory: consumer/fiftyone_pipeline_core + working-directory: consumer/pipeline/fiftyone_pipeline_core run: | set -euo pipefail python -m pip install --upgrade pip diff --git a/README.md b/README.md index 374cc50..4d21087 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ This repo is not a stand-alone package, but is shipped as part of and used by ea - [pipeline-dotnet](https://github.com/51Degrees/pipeline-dotnet) as a submodule - [pipeline-java](https://github.com/51Degrees/pipeline-java) as a submodule - [pipeline-node](https://github.com/51Degrees/pipeline-node) as a submodule -- [pipeline-python](https://github.com/51Degrees/pipeline-python) as a submodule +- [51degrees-python](https://github.com/51Degrees/51degrees-python) as a submodule, under `pipeline/` - [pipeline-php-core](https://github.com/51Degrees/pipeline-php-core) as a static dependency Wherever it is a submodule it will be updated by `Nightly Submodule Update` action, wherever it is a static dependency it will be updated by the `Nightly Package Update` action within a target repository. From 2dcced0ac2bb16ac1125c5dafa86a6c8c69a1f0e Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Tue, 3 Nov 2026 18:44:50 +0000 Subject: [PATCH 4/9] Check out the Rust SDK as 51degrees-rust (#34) The rust repository is now 51degrees-rust (51Degrees/51degrees-rust#206). The Rust job checks it out by the new name, and its job name, step name, input description and notices say 51degrees-rust. The job id and the rust-ref input keep their names, because an id can't start with a digit. --- .github/workflows/consumer-tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/consumer-tests.yml b/.github/workflows/consumer-tests.yml index 5783b8e..a9740cc 100644 --- a/.github/workflows/consumer-tests.yml +++ b/.github/workflows/consumer-tests.yml @@ -45,7 +45,7 @@ on: required: false default: main rust-ref: - description: Branch, tag or SHA of rust to test against + description: Branch, tag or SHA of 51degrees-rust to test against required: false default: main @@ -311,7 +311,7 @@ jobs: vendor/bin/phpunit --testsuite Unit rust: - name: rust JavaScript builder + name: 51degrees-rust JavaScript builder runs-on: ubuntu-latest steps: - name: Check out the template under review @@ -319,10 +319,10 @@ jobs: with: path: template - - name: Check out rust + - name: Check out 51degrees-rust uses: actions/checkout@v4 with: - repository: 51Degrees/rust + repository: 51Degrees/51degrees-rust ref: ${{ inputs.rust-ref || 'main' }} submodules: recursive path: consumer @@ -338,9 +338,9 @@ jobs: fi cp template/JavaScriptResource.mustache "consumer/$file" if git -C consumer diff --quiet -- "$file"; then - echo "::notice::the copy in rust is identical to the revision under review" + echo "::notice::the copy in 51degrees-rust is identical to the revision under review" else - echo "::warning::the copy in rust differs from the revision under review" + echo "::warning::the copy in 51degrees-rust differs from the revision under review" git -C consumer --no-pager diff --stat -- "$file" fi From c301be03ceb34a4505ae0072ae42bca0dc06bb36 Mon Sep 17 00:00:00 2001 From: ben51degrees Date: Tue, 3 Nov 2026 18:45:04 +0000 Subject: [PATCH 5/9] Build the Java consumer test from 51degrees-java (#36) --- .github/workflows/consumer-tests.yml | 20 +++++++++++--------- README.md | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/consumer-tests.yml b/.github/workflows/consumer-tests.yml index a9740cc..cd2390d 100644 --- a/.github/workflows/consumer-tests.yml +++ b/.github/workflows/consumer-tests.yml @@ -29,7 +29,7 @@ on: required: false default: main pipeline-java-ref: - description: Branch, tag or SHA of pipeline-java to test against + description: Branch, tag or SHA of 51degrees-java to test against required: false default: main pipeline-node-ref: @@ -114,7 +114,7 @@ jobs: if-no-files-found: warn pipeline-java: - name: pipeline-java JavaScript builder + name: 51degrees-java JavaScript builder runs-on: ubuntu-latest steps: - name: Check out the template under review @@ -122,25 +122,27 @@ jobs: with: path: template - - name: Check out pipeline-java + - name: Check out 51degrees-java uses: actions/checkout@v4 with: - repository: 51Degrees/pipeline-java + repository: 51Degrees/51degrees-java ref: ${{ inputs.pipeline-java-ref || 'main' }} - submodules: recursive + # The Pipeline API packages are under pipeline/ and need only the + # direct submodules, not the data files under cxx/. + submodules: true path: consumer - name: Swap in the template under review run: | set -euo pipefail - dest=consumer/pipeline.javascriptbuilder/src/main/resources/fiftyone/pipeline/javascriptbuilder/templates + dest=consumer/pipeline/pipeline.javascriptbuilder/src/main/resources/fiftyone/pipeline/javascriptbuilder/templates if [ ! -d "$dest" ]; then echo "::error::$dest is missing - the submodule has moved and this workflow needs updating" exit 1 fi cp template/*.mustache "$dest/" if git -C "$dest" diff --quiet; then - echo "::notice::identical to the revision pipeline-java pins, nothing swapped in" + echo "::notice::identical to the revision 51degrees-java pins, nothing swapped in" else git -C "$dest" --no-pager diff --stat fi @@ -160,7 +162,7 @@ jobs: chromedriver --version || echo "::warning::no chromedriver on the runner" - name: Run the JavaScript builder tests - working-directory: consumer + working-directory: consumer/pipeline run: | set -euo pipefail mvn -B -q -pl pipeline.javascriptbuilder -am -DskipTests install @@ -170,7 +172,7 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: pipeline-java-results + name: 51degrees-java-results path: consumer/**/surefire-reports/*.xml if-no-files-found: warn diff --git a/README.md b/README.md index 374cc50..15ab7f9 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ runs the tests that drive it in a real browser. This repo is not a stand-alone package, but is shipped as part of and used by each of the following repositories / packages: - [pipeline-dotnet](https://github.com/51Degrees/pipeline-dotnet) as a submodule -- [pipeline-java](https://github.com/51Degrees/pipeline-java) as a submodule +- [51degrees-java](https://github.com/51Degrees/51degrees-java) as a submodule, under `pipeline/` - [pipeline-node](https://github.com/51Degrees/pipeline-node) as a submodule - [pipeline-python](https://github.com/51Degrees/pipeline-python) as a submodule - [pipeline-php-core](https://github.com/51Degrees/pipeline-php-core) as a static dependency From 78968615b828f805d08eae0197433c38b9b977d2 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 3 Nov 2026 20:45:22 +0200 Subject: [PATCH 6/9] ci: test the PHP consumer from 51degrees-php (#38) pipeline-php-core is now a read-only mirror. The PHP job checks out the monorepo, swaps the template into pipeline/core and runs that package's unit tests there. --- .github/workflows/consumer-tests.yml | 19 ++++++++++--------- README.md | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/consumer-tests.yml b/.github/workflows/consumer-tests.yml index cd2390d..6927fa0 100644 --- a/.github/workflows/consumer-tests.yml +++ b/.github/workflows/consumer-tests.yml @@ -41,7 +41,7 @@ on: required: false default: main pipeline-php-core-ref: - description: Branch, tag or SHA of pipeline-php-core to test against + description: Branch, tag or SHA of 51degrees-php to test against required: false default: main rust-ref: @@ -265,7 +265,7 @@ jobs: python -m pytest tests/test_javascriptbuilder.py -q pipeline-php-core: - name: pipeline-php-core JavaScript builder + name: 51degrees-php JavaScript builder runs-on: ubuntu-latest steps: - name: Check out the template under review @@ -273,12 +273,13 @@ jobs: with: path: template - - name: Check out pipeline-php-core + # pipeline/core of the monorepo carries the copy. Its unit tests need + # no submodule, so the C sources and data files are not checked out. + - name: Check out 51degrees-php uses: actions/checkout@v4 with: - repository: 51Degrees/pipeline-php-core + repository: 51Degrees/51degrees-php ref: ${{ inputs.pipeline-php-core-ref || 'main' }} - submodules: recursive path: consumer # A copy rather than a submodule, so it is compared with the file as @@ -287,16 +288,16 @@ jobs: - name: Swap in the template under review run: | set -euo pipefail - file=javascript-templates/JavaScriptResource.mustache + file=pipeline/core/javascript-templates/JavaScriptResource.mustache if [ ! -f "consumer/$file" ]; then echo "::error::consumer/$file is missing - the copy has moved and this workflow needs updating" exit 1 fi cp template/JavaScriptResource.mustache "consumer/$file" if git -C consumer diff --quiet -- "$file"; then - echo "::notice::the copy in pipeline-php-core is identical to the revision under review" + echo "::notice::the copy in 51degrees-php is identical to the revision under review" else - echo "::warning::the copy in pipeline-php-core differs from the revision under review" + echo "::warning::the copy in 51degrees-php differs from the revision under review" git -C consumer --no-pager diff --stat -- "$file" fi @@ -306,7 +307,7 @@ jobs: tools: composer - name: Run the unit tests - working-directory: consumer + working-directory: consumer/pipeline/core run: | set -euo pipefail composer install --no-interaction --no-progress diff --git a/README.md b/README.md index 15ab7f9..4782c0e 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ This repo is not a stand-alone package, but is shipped as part of and used by ea - [51degrees-java](https://github.com/51Degrees/51degrees-java) as a submodule, under `pipeline/` - [pipeline-node](https://github.com/51Degrees/pipeline-node) as a submodule - [pipeline-python](https://github.com/51Degrees/pipeline-python) as a submodule -- [pipeline-php-core](https://github.com/51Degrees/pipeline-php-core) as a static dependency +- [51degrees-php](https://github.com/51Degrees/51degrees-php/tree/main/pipeline/core) as a static dependency Wherever it is a submodule it will be updated by `Nightly Submodule Update` action, wherever it is a static dependency it will be updated by the `Nightly Package Update` action within a target repository. From afd9a1ae83ed68f2d33a8eebf4440dcdd50aea6b Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Tue, 3 Nov 2026 18:45:40 +0000 Subject: [PATCH 7/9] Check that only rc merges into the default branch (#40) --- .github/workflows/only-rc-into-main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/only-rc-into-main.yml diff --git a/.github/workflows/only-rc-into-main.yml b/.github/workflows/only-rc-into-main.yml new file mode 100644 index 0000000..69e19ca --- /dev/null +++ b/.github/workflows/only-rc-into-main.yml @@ -0,0 +1,11 @@ +name: Only rc into main + +# A pull request into the default branch must come from rc. See +# 51Degrees/common-ci .github/workflows/only-rc-into-main.yml. +on: + pull_request: + +jobs: + rc: + name: Only rc into main + uses: 51Degrees/common-ci/.github/workflows/only-rc-into-main.yml@main From 4d181ff964d4489381d2a0d681b000fa7e0ee3f6 Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Tue, 3 Nov 2026 21:43:01 +0000 Subject: [PATCH 8/9] Copy the OWID source into fodid before the Rust builder tests (#44) --- .github/workflows/consumer-tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/consumer-tests.yml b/.github/workflows/consumer-tests.yml index b7223fe..407312c 100644 --- a/.github/workflows/consumer-tests.yml +++ b/.github/workflows/consumer-tests.yml @@ -356,6 +356,13 @@ jobs: - uses: dtolnay/rust-toolchain@stable + # fodid compiles the OWID source in, and this script copies it from the + # owid-rust submodule into fodid/src/owid, which git ignores. + - name: Copy the OWID source into fodid + working-directory: consumer + shell: pwsh + run: ./ci/copy-owid-source.ps1 + - name: Run the JavaScript builder tests working-directory: consumer run: cargo test -p fiftyone-javascript-builder From e74ad3bf7ca20010c5f52e72c2a59489bacc5759 Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Wed, 11 Nov 2026 23:52:48 +0000 Subject: [PATCH 9/9] Add the licence as LICENSE, in the form 51degrees-cxx uses (#45) * Add the licence as LICENSE and NOTICE, in the form 51degrees-cxx uses The repository had no licence file. LICENSE is the plain EUPL v1.2 text, byte for byte the file in 51degrees-cxx, and NOTICE holds the two additional terms that every 51Degrees source header repeats. The test script now carries the licenseText of the CopyrightUpdater settings in the tools repository. * Keep the licence in LICENSE alone, with no NOTICE The two additional terms are stated in the header of every source file, which is where they apply, so NOTICE is removed, as in 51degrees-cxx. --- LICENSE | 274 ++++++++++++++++++++++++++++++++++++++++ tests/template-tests.js | 22 ++++ 2 files changed, 296 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a74f044 --- /dev/null +++ b/LICENSE @@ -0,0 +1,274 @@ +European Union Public Licence +V. 1.2 + +EUPL © the European Union 2007, 2016 + +This European Union Public Licence (the ‘EUPL’) applies to the Work (as +defined below) which is provided under the terms of this Licence. Any use of +the Work, other than as authorised under this Licence is prohibited (to the +extent such use is covered by a right of the copyright holder of the Work). + +The Work is provided under the terms of this Licence when the Licensor (as +defined below) has placed the following notice immediately following the +copyright notice for the Work: “Licensed under the EUPL”, or has expressed by +any other means his willingness to license under the EUPL. + +1. Definitions + +In this Licence, the following terms have the following meaning: +— ‘The Licence’: this Licence. +— ‘The Original Work’: the work or software distributed or communicated by the + ‘Licensor under this Licence, available as Source Code and also as + ‘Executable Code as the case may be. +— ‘Derivative Works’: the works or software that could be created by the + ‘Licensee, based upon the Original Work or modifications thereof. This + ‘Licence does not define the extent of modification or dependence on the + ‘Original Work required in order to classify a work as a Derivative Work; + ‘this extent is determined by copyright law applicable in the country + ‘mentioned in Article 15. +— ‘The Work’: the Original Work or its Derivative Works. +— ‘The Source Code’: the human-readable form of the Work which is the most + convenient for people to study and modify. + +— ‘The Executable Code’: any code which has generally been compiled and which + is meant to be interpreted by a computer as a program. +— ‘The Licensor’: the natural or legal person that distributes or communicates + the Work under the Licence. +— ‘Contributor(s)’: any natural or legal person who modifies the Work under + the Licence, or otherwise contributes to the creation of a Derivative Work. +— ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of + the Work under the terms of the Licence. +— ‘Distribution’ or ‘Communication’: any act of selling, giving, lending, + renting, distributing, communicating, transmitting, or otherwise making + available, online or offline, copies of the Work or providing access to its + essential functionalities at the disposal of any other natural or legal + person. + +2. Scope of the rights granted by the Licence + +The Licensor hereby grants You a worldwide, royalty-free, non-exclusive, +sublicensable licence to do the following, for the duration of copyright +vested in the Original Work: + +— use the Work in any circumstance and for all usage, +— reproduce the Work, +— modify the Work, and make Derivative Works based upon the Work, +— communicate to the public, including the right to make available or display + the Work or copies thereof to the public and perform publicly, as the case + may be, the Work, +— distribute the Work or copies thereof, +— lend and rent the Work or copies thereof, +— sublicense rights in the Work or copies thereof. + +Those rights can be exercised on any media, supports and formats, whether now +known or later invented, as far as the applicable law permits so. + +In the countries where moral rights apply, the Licensor waives his right to +exercise his moral right to the extent allowed by law in order to make +effective the licence of the economic rights here above listed. + +The Licensor grants to the Licensee royalty-free, non-exclusive usage rights +to any patents held by the Licensor, to the extent necessary to make use of +the rights granted on the Work under this Licence. + +3. Communication of the Source Code + +The Licensor may provide the Work either in its Source Code form, or as +Executable Code. If the Work is provided as Executable Code, the Licensor +provides in addition a machine-readable copy of the Source Code of the Work +along with each copy of the Work that the Licensor distributes or indicates, +in a notice following the copyright notice attached to the Work, a repository +where the Source Code is easily and freely accessible for as long as the +Licensor continues to distribute or communicate the Work. + +4. Limitations on copyright + +Nothing in this Licence is intended to deprive the Licensee of the benefits +from any exception or limitation to the exclusive rights of the rights owners +in the Work, of the exhaustion of those rights or of other applicable +limitations thereto. + +5. Obligations of the Licensee + +The grant of the rights mentioned above is subject to some restrictions and +obligations imposed on the Licensee. Those obligations are the following: + +Attribution right: The Licensee shall keep intact all copyright, patent or +trademarks notices and all notices that refer to the Licence and to the +disclaimer of warranties. The Licensee must include a copy of such notices and +a copy of the Licence with every copy of the Work he/she distributes or +communicates. The Licensee must cause any Derivative Work to carry prominent +notices stating that the Work has been modified and the date of modification. + +Copyleft clause: If the Licensee distributes or communicates copies of the +Original Works or Derivative Works, this Distribution or Communication will be +done under the terms of this Licence or of a later version of this Licence +unless the Original Work is expressly distributed only under this version of +the Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee +(becoming Licensor) cannot offer or impose any additional terms or conditions +on the Work or Derivative Work that alter or restrict the terms of the +Licence. + +Compatibility clause: If the Licensee Distributes or Communicates Derivative +Works or copies thereof based upon both the Work and another work licensed +under a Compatible Licence, this Distribution or Communication can be done +under the terms of this Compatible Licence. For the sake of this clause, +‘Compatible Licence’ refers to the licences listed in the appendix attached to +this Licence. Should the Licensee's obligations under the Compatible Licence +conflict with his/her obligations under this Licence, the obligations of the +Compatible Licence shall prevail. + +Provision of Source Code: When distributing or communicating copies of the +Work, the Licensee will provide a machine-readable copy of the Source Code or +indicate a repository where this Source will be easily and freely available +for as long as the Licensee continues to distribute or communicate the Work. + +Legal Protection: This Licence does not grant permission to use the trade +names, trademarks, service marks, or names of the Licensor, except as required +for reasonable and customary use in describing the origin of the Work and +reproducing the content of the copyright notice. + +6. Chain of Authorship + +The original Licensor warrants that the copyright in the Original Work granted +hereunder is owned by him/her or licensed to him/her and that he/she has the +power and authority to grant the Licence. + +Each Contributor warrants that the copyright in the modifications he/she +brings to the Work are owned by him/her or licensed to him/her and that he/she +has the power and authority to grant the Licence. + +Each time You accept the Licence, the original Licensor and subsequent +Contributors grant You a licence to their contributions to the Work, under the +terms of this Licence. + +7. Disclaimer of Warranty + +The Work is a work in progress, which is continuously improved by numerous +Contributors. It is not a finished work and may therefore contain defects or +‘bugs’ inherent to this type of development. + +For the above reason, the Work is provided under the Licence on an ‘as is’ +basis and without warranties of any kind concerning the Work, including +without limitation merchantability, fitness for a particular purpose, absence +of defects or errors, accuracy, non-infringement of intellectual property +rights other than copyright as stated in Article 6 of this Licence. + +This disclaimer of warranty is an essential part of the Licence and a +condition for the grant of any rights to the Work. + +8. Disclaimer of Liability + +Except in the cases of wilful misconduct or damages directly caused to natural +persons, the Licensor will in no event be liable for any direct or indirect, +material or moral, damages of any kind, arising out of the Licence or of the +use of the Work, including without limitation, damages for loss of goodwill, +work stoppage, computer failure or malfunction, loss of data or any commercial +damage, even if the Licensor has been advised of the possibility of such +damage. However, the Licensor will be liable under statutory product liability +laws as far such laws apply to the Work. + +9. Additional agreements + +While distributing the Work, You may choose to conclude an additional +agreement, defining obligations or services consistent with this Licence. +However, if accepting obligations, You may act only on your own behalf and on +your sole responsibility, not on behalf of the original Licensor or any other +Contributor, and only if You agree to indemnify, defend, and hold each +Contributor harmless for any liability incurred by, or claims asserted against +such Contributor by the fact You have accepted any warranty or additional +liability. + +10. Acceptance of the Licence + +The provisions of this Licence can be accepted by clicking on an icon ‘I +agree’ placed under the bottom of a window displaying the text of this Licence +or by affirming consent in any other similar way, in accordance with the rules +of applicable law. Clicking on that icon indicates your clear and irrevocable +acceptance of this Licence and all of its terms and conditions. + +Similarly, you irrevocably accept this Licence and all of its terms and +conditions by exercising any rights granted to You by Article 2 of this +Licence, such as the use of the Work, the creation by You of a Derivative Work +or the Distribution or Communication by You of the Work or copies thereof. + +11. Information to the public + +In case of any Distribution or Communication of the Work by means of +electronic communication by You (for example, by offering to download the Work +from a remote location) the distribution channel or media (for example, a +website) must at least provide to the public the information requested by the +applicable law regarding the Licensor, the Licence and the way it may be +accessible, concluded, stored and reproduced by the Licensee. + +12. Termination of the Licence + +The Licence and the rights granted hereunder will terminate automatically upon +any breach by the Licensee of the terms of the Licence. Such a termination +will not terminate the licences of any person who has received the Work from +the Licensee under the Licence, provided such persons remain in full +compliance with the Licence. + +13. Miscellaneous + +Without prejudice of Article 9 above, the Licence represents the complete +agreement between the Parties as to the Work. + +If any provision of the Licence is invalid or unenforceable under applicable +law, this will not affect the validity or enforceability of the Licence as a +whole. Such provision will be construed or reformed so as necessary to make it +valid and enforceable. + +The European Commission may publish other linguistic versions or new versions +of this Licence or updated versions of the Appendix, so far this is required +and reasonable, without reducing the scope of the rights granted by the +Licence. New versions of the Licence will be published with a unique version +number. + +All linguistic versions of this Licence, approved by the European Commission, +have identical value. Parties can take advantage of the linguistic version of +their choice. + +14. Jurisdiction + +Without prejudice to specific agreement between parties, +— any litigation resulting from the interpretation of this License, arising + between the European Union institutions, bodies, offices or agencies, as a + Licensor, and any Licensee, will be subject to the jurisdiction of the Court + of Justice of the European Union, as laid down in article 272 of the Treaty + on the Functioning of the European Union, +— any litigation arising between other parties and resulting from the + interpretation of this License, will be subject to the exclusive + jurisdiction of the competent court where the Licensor resides or conducts + its primary business. + +15. Applicable Law + +Without prejudice to specific agreement between parties, +— this Licence shall be governed by the law of the European Union Member State + where the Licensor has his seat, resides or has his registered office, +— this licence shall be governed by Belgian law if the Licensor has no seat, + residence or registered office inside a European Union Member State. + +Appendix + +‘Compatible Licences’ according to Article 5 EUPL are: +— GNU General Public License (GPL) v. 2, v. 3 +— GNU Affero General Public License (AGPL) v. 3 +— Open Software License (OSL) v. 2.1, v. 3.0 +— Eclipse Public License (EPL) v. 1.0 +— CeCILL v. 2.0, v. 2.1 +— Mozilla Public Licence (MPL) v. 2 +— GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3 +— Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for + works other than software +— European Union Public Licence (EUPL) v. 1.1, v. 1.2 +— Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or + Strong Reciprocity (LiLiQ-R+) + +— The European Commission may update this Appendix to later versions of the + above licences without producing a new version of the EUPL, as long as they + provide the rights granted in Article 2 of this Licence and protect the + covered Source Code from exclusive appropriation. +— All other changes or additions to this Appendix require the production of a + new EUPL version. diff --git a/tests/template-tests.js b/tests/template-tests.js index 60d9a20..69d787c 100644 --- a/tests/template-tests.js +++ b/tests/template-tests.js @@ -1,3 +1,25 @@ +/* ********************************************************************* + * This Original Work is copyright of 51 Degrees Mobile Experts Limited. + * Copyright 2026 51 Degrees Mobile Experts Limited, Davidson House, + * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU. + * + * This Original Work is licensed under the European Union Public Licence + * (EUPL) v.1.2 and is subject to its terms as set out below. + * + * If a copy of the EUPL was not distributed with this file, You can obtain + * one at https://opensource.org/licenses/EUPL-1.2. + * + * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be + * amended by the European Commission) shall be deemed incompatible for + * the purposes of the Work and the provisions of the compatibility + * clause in Article 5 of the EUPL shall not apply. + * + * If using the Work as, or as part of, a network application, by + * including the attribution notice(s) required under Article 5 of the EUPL + * in the end user terms of the application under an appropriate heading, + * such notice(s) shall fulfill the requirements of that article. + * ********************************************************************* */ + // Proves what JavaScriptResource.mustache does before any port embeds it. // The template is not executable on its own, so each check renders it with a // model matching JavaScriptResource.AsDictionary in pipeline-dotnet and then