Build:
- 0
2024-11-12 16:37.58: New job: docker build { "compose-or-build": true, "commit": "7f15246593266428932ffd7788be06e5bf89c1a3", "dockerfile": { "file": "Dockerfile" }, "docker_context": null, "squash": false, "build_args": [], "path": null } 2024-11-12 16:37.58: Checking out commit 7f152465. To reproduce: git clone --recursive "https://github.com/quantifyearth/tmf-implementation.git" -b "epr26-forecast" && cd "tmf-implementation" && git reset --hard 7f152465 2024-11-12 16:37.58: Exec: "cp" "-a" "--" "/var/lib/ocurrent/var/git/tmf-implementation.git-5332eb8f4e9a0e164ac8337c5fb9bb231623a1b49513d9e0b7e8093b59f0e60b/.git" "/tmp/git-checkout176d0f32" 2024-11-12 16:37.58: Exec: "git" "-C" "/tmp/git-checkout176d0f32" "reset" "--hard" "-q" "7f15246593266428932ffd7788be06e5bf89c1a3" 2024-11-12 16:37.58: Exec: "docker" "build" "--pull" "-f" "/tmp/git-checkout176d0f32/Dockerfile" "--iidfile" "/tmp/git-checkout176d0f32/docker-iid" "--" "/tmp/git-checkout176d0f32" DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 3.33MB Step 1/16 : FROM golang:bullseye AS littlejohn bullseye: Pulling from library/golang c2056d933cd6: Pulling fs layer d3f895247ac5: Pulling fs layer 05d199724b11: Pulling fs layer 34766222467c: Pulling fs layer c79bddf330f7: Pulling fs layer 55b755dce003: Pulling fs layer 4f4fb700ef54: Pulling fs layer 34766222467c: Waiting c79bddf330f7: Waiting 55b755dce003: Waiting 4f4fb700ef54: Waiting d3f895247ac5: Verifying Checksum d3f895247ac5: Download complete c2056d933cd6: Verifying Checksum c2056d933cd6: Download complete 05d199724b11: Verifying Checksum 05d199724b11: Download complete 55b755dce003: Verifying Checksum 55b755dce003: Download complete 4f4fb700ef54: Verifying Checksum 4f4fb700ef54: Download complete 34766222467c: Verifying Checksum 34766222467c: Download complete c79bddf330f7: Verifying Checksum c79bddf330f7: Download complete c2056d933cd6: Pull complete d3f895247ac5: Pull complete 05d199724b11: Pull complete 34766222467c: Pull complete c79bddf330f7: Pull complete 55b755dce003: Pull complete 4f4fb700ef54: Pull complete Digest: sha256:d4387d8b2ee5b78a199fae168a761d0fb0f33f172642d20856f29a67204af16b Status: Downloaded newer image for golang:bullseye ---> 050e12fb60cc Step 2/16 : RUN git clone https://github.com/carboncredits/littlejohn.git ---> Running in b9830bf13aff Cloning into 'littlejohn'... Removing intermediate container b9830bf13aff ---> 1de2e002233e Step 3/16 : WORKDIR littlejohn ---> Running in 6e0dcb88305f Removing intermediate container 6e0dcb88305f ---> cea88b8ed65f Step 4/16 : RUN go build ---> Running in 0bfb775c783c go: downloading github.com/jawher/mow.cli v1.2.0 Removing intermediate container 0bfb775c783c ---> 422990e09e69 Step 5/16 : FROM ghcr.io/osgeo/gdal:ubuntu-small-3.8.4 ubuntu-small-3.8.4: Pulling from osgeo/gdal Digest: sha256:60d3bc2f8b09ca1a7ef2db0239699b2c03713aa02be6e525e731c0020bbb10a4 Status: Image is up to date for ghcr.io/osgeo/gdal:ubuntu-small-3.8.4 ---> b6b70289e4cd Step 6/16 : COPY --from=littlejohn /go/littlejohn/littlejohn /bin/littlejohn ---> Using cache ---> af316c201434 Step 7/16 : RUN apt-get update -qqy && apt-get install -qy git libpq-dev python3-pip && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apt/* ---> Using cache ---> 3c0dc2b323f8 Step 8/16 : RUN pip install --upgrade pip ---> Using cache ---> 1719f1c6994e Step 9/16 : RUN pip install numpy ---> Using cache ---> e39e3d833dfa Step 10/16 : RUN pip install gdal[numpy]==3.8.4 ---> Using cache ---> 9a70e29dd951 Step 11/16 : WORKDIR /usr/src/app ---> Using cache ---> abe54a9c7ca4 Step 12/16 : COPY requirements.txt ./ ---> Using cache ---> aef975a72d18 Step 13/16 : RUN pip install --no-cache-dir -r requirements.txt ---> Using cache ---> dd3720b3ca67 Step 14/16 : COPY . ./ ---> 135f9b4b67d8 Step 15/16 : RUN make lint && make type && make test ---> Running in 7c24913e53ee python -m pylint methods ************* Module methods.common.additionality methods/common/additionality.py:81:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) ************* Module methods.inputs.generate_matching_area methods/inputs/generate_matching_area.py:20:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) ************* Module methods.inputs.generate_carbon_density methods/inputs/generate_carbon_density.py:6:0: W0404: Reimport 'glob' (imported line 2) (reimported) methods/inputs/generate_carbon_density.py:6:0: C0412: Imports from package glob are not grouped (ungrouped-imports) ************* Module methods.outputs.calculate_leakage methods/outputs/calculate_leakage.py:91:10: E1120: No value for argument 'expected_number_of_iterations' in function call (no-value-for-parameter) ************* Module methods.outputs.calculate_permanence methods/outputs/calculate_permanence.py:114:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) methods/outputs/calculate_permanence.py:211:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) ************* Module methods.matching.find_potential_matches methods/matching/find_potential_matches.py:99:0: R0917: Too many positional arguments (14/5) (too-many-positional-arguments) methods/matching/find_potential_matches.py:211:0: R0917: Too many positional arguments (14/5) (too-many-positional-arguments) ************* Module methods.matching.tile_m methods/matching/tile_m.py:70:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/tile_m.py:74:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/tile_m.py:9:0: C0103: Constant name "grid_resolution_m" doesn't conform to UPPER_CASE naming style (invalid-name) methods/matching/tile_m.py:12:0: C0103: Constant name "m_parquet_filename" doesn't conform to UPPER_CASE naming style (invalid-name) methods/matching/tile_m.py:16:27: E0602: Undefined variable 'k_parquet_filename' (undefined-variable) methods/matching/tile_m.py:72:4: C0103: Constant name "file_name" doesn't conform to UPPER_CASE naming style (invalid-name) methods/matching/tile_m.py:86:0: C0413: Import "import random" should be placed at the top of the module (wrong-import-position) methods/matching/tile_m.py:6:0: C0411: standard import "time" should be placed before third party imports "pandas", "numpy", "pyproj.Proj", "numba.jit" (wrong-import-order) methods/matching/tile_m.py:7:0: C0411: standard import "os" should be placed before third party imports "pandas", "numpy", "pyproj.Proj", "numba.jit" (wrong-import-order) methods/matching/tile_m.py:86:0: C0411: standard import "random" should be placed before third party imports "pandas", "numpy", "pyproj.Proj", "numba.jit" (wrong-import-order) methods/matching/tile_m.py:3:0: W0611: Unused numpy imported as np (unused-import) methods/matching/tile_m.py:5:0: W0611: Unused jit imported from numba (unused-import) methods/matching/tile_m.py:6:0: W0611: Unused import time (unused-import) ************* Module methods.matching.cluster_find_pairs_interactive methods/matching/cluster_find_pairs_interactive.py:36:114: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:38:107: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:68:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:71:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:74:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:79:55: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:126:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) methods/matching/cluster_find_pairs_interactive.py:127:90: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:213:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:227:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:229:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:237:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:241:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:251:24: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:270:68: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:298:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:302:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:306:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:312:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:313:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) methods/matching/cluster_find_pairs_interactive.py:316:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:319:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:331:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:334:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:346:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:349:58: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:351:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/cluster_find_pairs_interactive.py:374:0: C0305: Trailing newlines (trailing-newlines) methods/matching/cluster_find_pairs_interactive.py:45:15: W0621: Redefining name 'm_pca' from outer scope (line 257) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:45:22: W0621: Redefining name 'k_pca' from outer scope (line 256) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:48:8: W0621: Redefining name 'i' from outer scope (line 211) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:51:12: W0621: Redefining name 'j' from outer scope (line 239) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:90:4: W0621: Redefining name 'mean1' from outer scope (line 329) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:90:11: W0621: Redefining name 'mean2' from outer scope (line 329) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:96:4: W0621: Redefining name 'pooled_std' from outer scope (line 329) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:98:4: W0621: Redefining name 'smd' from outer scope (line 329) (redefined-outer-name) methods/matching/cluster_find_pairs_interactive.py:111:0: C0103: Constant name "t0" doesn't conform to UPPER_CASE naming style (invalid-name) methods/matching/cluster_find_pairs_interactive.py:121:0: C0103: Constant name "t0" doesn't conform to UPPER_CASE naming style (invalid-name) methods/matching/cluster_find_pairs_interactive.py:11:0: C0411: standard import "os" should be placed before third party imports "pandas", "numpy", "numba.njit" (...) "matplotlib.pyplot", "geopandas", "pyproj.Proj" (wrong-import-order) methods/matching/cluster_find_pairs_interactive.py:12:0: C0411: standard import "time" should be placed before third party imports "pandas", "numpy", "numba.njit" (...) "matplotlib.pyplot", "geopandas", "pyproj.Proj" (wrong-import-order) methods/matching/cluster_find_pairs_interactive.py:13:0: C0411: standard import "sys" should be placed before third party imports "pandas", "numpy", "numba.njit" (...) "matplotlib.pyplot", "geopandas", "pyproj.Proj" (wrong-import-order) methods/matching/cluster_find_pairs_interactive.py:7:0: W0611: Unused KMeans imported from sklearn.cluster (unused-import) methods/matching/cluster_find_pairs_interactive.py:10:0: W0611: Unused Proj imported from pyproj (unused-import) methods/matching/cluster_find_pairs_interactive.py:10:0: W0611: Unused transform imported from pyproj (unused-import) methods/matching/cluster_find_pairs_interactive.py:11:0: W0611: Unused import os (unused-import) methods/matching/cluster_find_pairs_interactive.py:13:0: W0611: Unused import sys (unused-import) ************* Module methods.matching.build_m_table methods/matching/build_m_table.py:11:0: R0917: Too many positional arguments (13/5) (too-many-positional-arguments) methods/matching/build_m_table.py:2:0: W0611: Unused import logging (unused-import) ************* Module methods.matching.calculate_k methods/matching/calculate_k.py:35:0: R0917: Too many positional arguments (12/5) (too-many-positional-arguments) methods/matching/calculate_k.py:117:0: R0917: Too many positional arguments (12/5) (too-many-positional-arguments) ************* Module methods.matching.find_pairs methods/matching/find_pairs.py:14:8: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:17:12: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:78:55: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:112:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:123:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) methods/matching/find_pairs.py:124:94: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:156:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:157:28: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:173:72: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:181:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:189:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:199:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:205:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:209:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:212:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:223:0: C0301: Line too long (123/120) (line-too-long) methods/matching/find_pairs.py:228:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:236:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:247:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:248:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) methods/matching/find_pairs.py:251:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:254:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:257:62: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:261:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:269:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:272:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:283:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:286:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:304:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:307:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:310:0: C0303: Trailing whitespace (trailing-whitespace) methods/matching/find_pairs.py:100:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) methods/matching/find_pairs.py:111:4: W0612: Unused variable 'rng' (unused-variable) methods/matching/find_pairs.py:289:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) methods/matching/find_pairs.py:12:0: W0611: Unused luc_matching_columns imported from methods.common.luc (unused-import) ----------------------------------- Your code has been rated at 9.52/10 make: *** [Makefile:11: lint] Error 30 The command '/bin/sh -c make lint && make type && make test' returned a non-zero code: 2 2024-11-12 16:40.08: Job failed: Docker build exited with status 2