Build:
- 0
2024-10-29 15:40.02: New job: docker build {
"compose-or-build": true,
"commit": "4e26cb9f315ff6ddf64d6889d7112a3ec1a27dec",
"dockerfile": {
"file": "Dockerfile"
},
"docker_context": null,
"squash": false,
"build_args": [],
"path": null
}
2024-10-29 15:40.02: Checking out commit 4e26cb9f. To reproduce:
git clone --recursive "https://github.com/quantifyearth/tmf-implementation.git" -b "epr26-forecast-time-offset" && cd "tmf-implementation" && git reset --hard 4e26cb9f
2024-10-29 15:40.02: Exec: "cp" "-a" "--" "/var/lib/ocurrent/var/git/tmf-implementation.git-5332eb8f4e9a0e164ac8337c5fb9bb231623a1b49513d9e0b7e8093b59f0e60b/.git"
"/tmp/git-checkout20204099"
2024-10-29 15:40.02: Exec: "git" "-C" "/tmp/git-checkout20204099" "reset"
"--hard" "-q" "4e26cb9f315ff6ddf64d6889d7112a3ec1a27dec"
2024-10-29 15:40.02: Exec: "docker" "build" "--pull" "-f" "/tmp/git-checkout20204099/Dockerfile"
"--iidfile" "/tmp/git-checkout20204099/docker-iid"
"--" "/tmp/git-checkout20204099"
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.243MB
Step 1/16 : FROM golang:bullseye AS littlejohn
bullseye: Pulling from library/golang
Digest: sha256:ecb3fe70e1fd6cef4c5c74246a7525c3b7d59c48ea0589bbb0e57b1b37321fb9
Status: Image is up to date for golang:bullseye
---> 9be600d787e1
Step 2/16 : RUN git clone https://github.com/carboncredits/littlejohn.git
---> Using cache
---> 22a4d71f60b5
Step 3/16 : WORKDIR littlejohn
---> Using cache
---> 6106c722b633
Step 4/16 : RUN go build
---> Using cache
---> c4c60b57cf29
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 . ./
---> 6c0476952dce
Step 15/16 : RUN make lint && make type && make test
---> Running in 7e623eaf08b5
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)
methods/matching/build_m_table.py:13:4: W0613: Unused argument 'evaluation_year' (unused-argument)
************* 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:110:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:113:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:127:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:134:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:135:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens)
methods/matching/find_pairs.py:136:94: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:139:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:140:28: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:143:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:147:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:161:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:162:28: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:178:72: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:181:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:184:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:192:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:202:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:208:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:212:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:215:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:226:0: C0301: Line too long (123/120) (line-too-long)
methods/matching/find_pairs.py:227:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:231:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:239:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:244:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:250:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:251:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens)
methods/matching/find_pairs.py:254:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:257:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:260:62: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:264:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:281:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:282:28: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:285:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:288:0: C0303: Trailing whitespace (trailing-whitespace)
methods/matching/find_pairs.py:291: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:116:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
methods/matching/find_pairs.py:126:4: W0612: Unused variable 'rng' (unused-variable)
methods/matching/find_pairs.py:128:4: W0612: Unused variable 'match_years' (unused-variable)
methods/matching/find_pairs.py:267:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
methods/matching/find_pairs.py:268:4: W0621: Redefining name 'k_parquet_filename' from outer scope (line 24) (redefined-outer-name)
methods/matching/find_pairs.py:269:4: W0621: Redefining name 'm_parquet_filename' from outer scope (line 25) (redefined-outer-name)
methods/matching/find_pairs.py:283:23: E1120: No value for argument 'eval_year' in function call (no-value-for-parameter)
methods/matching/find_pairs.py:284:23: E1120: No value for argument 'eval_year' in function call (no-value-for-parameter)
methods/matching/find_pairs.py:271:4: W0613: Unused argument 'eval_year' (unused-argument)
methods/matching/find_pairs.py:370:4: E1120: No value for argument 'processes_count' in function call (no-value-for-parameter)
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.41/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-29 15:41.21: Job failed: Docker build exited with status 2