Build:
- 0
2024-10-03 15:56.19: New job: docker build {
"compose-or-build": true,
"commit": "55b2e553197fd9a6ac9ec77692984e621a2bff29",
"dockerfile": {
"file": "Dockerfile"
},
"docker_context": null,
"squash": false,
"build_args": [],
"path": null
}
2024-10-03 15:56.19: Checking out commit 55b2e553. To reproduce:
git clone --recursive "https://github.com/quantifyearth/tmf-implementation.git" -b "epr26-forecast-time-offset" && cd "tmf-implementation" && git reset --hard 55b2e553
2024-10-03 15:56.19: Exec: "cp" "-a" "--" "/var/lib/ocurrent/var/git/tmf-implementation.git-5332eb8f4e9a0e164ac8337c5fb9bb231623a1b49513d9e0b7e8093b59f0e60b/.git"
"/tmp/git-checkout3bd79ae0"
2024-10-03 15:56.20: Exec: "git" "-C" "/tmp/git-checkout3bd79ae0" "reset"
"--hard" "-q" "55b2e553197fd9a6ac9ec77692984e621a2bff29"
2024-10-03 15:56.20: Exec: "docker" "build" "--pull" "-f" "/tmp/git-checkout3bd79ae0/Dockerfile"
"--iidfile" "/tmp/git-checkout3bd79ae0/docker-iid"
"--" "/tmp/git-checkout3bd79ae0"
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.184MB
Step 1/16 : FROM golang:bullseye AS littlejohn
bullseye: Pulling from library/golang
Digest: sha256:ebaf58d74f200c27dce0181203a1347e41b5c159c9aa0517a95bec594aabbde4
Status: Image is up to date for golang:bullseye
---> adbf8c3ce82a
Step 2/16 : RUN git clone https://github.com/carboncredits/littlejohn.git
---> Using cache
---> 39638f47c270
Step 3/16 : WORKDIR littlejohn
---> Using cache
---> 0a0caf6e24e2
Step 4/16 : RUN go build
---> Using cache
---> 820a092545e3
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
---> 47f5284b0876
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
---> 4547317fefd5
Step 8/16 : RUN pip install --upgrade pip
---> Using cache
---> 717dac0284ad
Step 9/16 : RUN pip install numpy
---> Using cache
---> 4c103e635bc4
Step 10/16 : RUN pip install gdal[numpy]==3.8.4
---> Using cache
---> a0eabcfa9d04
Step 11/16 : WORKDIR /usr/src/app
---> Using cache
---> 9afd6029134b
Step 12/16 : COPY requirements.txt ./
---> Using cache
---> 1d6c405f82f2
Step 13/16 : RUN pip install --no-cache-dir -r requirements.txt
---> Using cache
---> b368d45cb7a9
Step 14/16 : COPY . ./
---> 02479c7da650
Step 15/16 : RUN make lint && make type && make test
---> Running in 03aa871c02ad
python -m pylint methods
************* Module methods.common.additionality
methods/common/additionality.py:81:0: R0917: Too many positional arguments (6/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_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 (13/5) (too-many-positional-arguments)
methods/matching/find_potential_matches.py:205:0: R0917: Too many positional arguments (13/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:10:0: R0917: Too many positional arguments (12/5) (too-many-positional-arguments)
************* 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:115: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:82:55: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:114:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:121:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:122:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens)
methods/matching/find_pairs.py:123:94: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:126:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:130:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:144:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:145:28: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:161:72: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:164:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:167:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:175:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:185:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:191:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:195:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:198:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:209:0: C0301: Line too long (123/120) (line-too-long)
methods/matching/find_pairs.py:210:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:214:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:222:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:227:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:233:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:234:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens)
methods/matching/find_pairs.py:237:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:240:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:243:62: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:247:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:263:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:266:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:269:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:23:0: C0103: Constant name "t0" doesn't conform to UPPER_CASE naming style (invalid-name)
methods/matching/find_pairs.py:24:0: C0103: Constant name "k_parquet_filename" doesn't conform to UPPER_CASE naming style (invalid-name)
methods/matching/find_pairs.py:25:0: C0103: Constant name "m_parquet_filename" doesn't conform to UPPER_CASE naming style (invalid-name)
methods/matching/find_pairs.py:104:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
methods/matching/find_pairs.py:113:4: W0612: Unused variable 'rng' (unused-variable)
methods/matching/find_pairs.py:250:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
methods/matching/find_pairs.py:251:4: W0621: Redefining name 'k_parquet_filename' from outer scope (line 24) (redefined-outer-name)
methods/matching/find_pairs.py:252:4: W0621: Redefining name 'm_parquet_filename' from outer scope (line 25) (redefined-outer-name)
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.51/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-10-03 15:57.34: Job failed: Docker build exited with status 2