Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.3.24 #1339

Merged
merged 36 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c51517f
Bootcamp module changes (#1298)
petreeb Dec 14, 2024
8378156
fix(deps): update dependency cognite-sdk to v7.70.3 (#1302)
renovate[bot] Dec 14, 2024
97244e8
chore(deps): update dependency pytest-rerunfailures to v15 (#1303)
renovate[bot] Dec 14, 2024
774ebac
[CDF-21341, CDF-21361, CDF-21362, CDF-21417, CDF-21791, CDF-22483] 🚅 …
doctrino Dec 16, 2024
97775d1
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Dec 16, 2024
1a1496f
chore(deps): lock file maintenance (#1305)
renovate[bot] Dec 16, 2024
32525c5
[CDF-23572] 🏚 Build offline (#1306)
doctrino Dec 17, 2024
d3d3edd
[CDF-21341, CDF-21361, CDF-21362, CDF-21417, CDF-21791, CDF-22483]🔗 M…
doctrino Dec 17, 2024
3567146
fix(deps): update dependency cognite-sdk to v7.70.6 (#1311)
renovate[bot] Dec 20, 2024
ca322be
chore(deps): update dependency pytest-regressions to v2.6.0 (#1312)
renovate[bot] Dec 20, 2024
2ea033c
chore(deps): update dependency pydantic to v2.10.4 (#1314)
renovate[bot] Dec 21, 2024
4032fac
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Dec 22, 2024
6ff4004
[CDF-23592] 😋 Move lookup to Toolkit Client (#1310)
doctrino Dec 23, 2024
6c8d8b3
[CDF-23593] 😃 Refactor dump method (#1313)
doctrino Dec 23, 2024
ba3d0c1
[CDF-23599] 😮‍💨 No redeploy unnecessarily (#1315)
doctrino Dec 23, 2024
8a7d2bc
[CDF-23600] 😊 Final touch modules pull (#1316)
doctrino Dec 23, 2024
dde6391
chore(deps): lock file maintenance (#1318)
renovate[bot] Dec 30, 2024
f77f702
chore(deps): update dependency mypy to v1.14.1 (#1319)
renovate[bot] Dec 30, 2024
37630e7
[CDF-23605, CDF-23607, CDF-23606] 🤨 Location filter issues (#1320)
doctrino Jan 6, 2025
8b58984
[CDF-23583] 👮‍♂️ CPU and Memory outside function limit (#1309)
doctrino Jan 6, 2025
bca9bf9
[CDF-23342] 🧐 Fix update kind (#1322)
doctrino Jan 6, 2025
527468a
[CDF-23263] 🤖 Add verbose to all cmds (#1324)
doctrino Jan 6, 2025
ef941bc
[CDF-23608] ✍ Lookup asset external (#1325)
doctrino Jan 6, 2025
00778ae
[CDF-23319] 🧑‍🏭Added missing ref to dataset (#1326)
doctrino Jan 6, 2025
b102184
[CDF-21413] 😋 Function per file hashing (#1327)
doctrino Jan 6, 2025
3078236
[CDF-23588] 🧑‍💼 Env warning (#1328)
doctrino Jan 6, 2025
3b61d8c
[CDF-23604] 👷 Workflow check dependencies (#1329)
doctrino Jan 6, 2025
589151b
[CDF-22196] 🧑‍🎤 Read any csv dialect (#1330)
doctrino Jan 6, 2025
c9a3f8d
[CDF-23582] 💂 fix: better error message (#1331)
doctrino Jan 6, 2025
8d05380
[CDF-23587] 🦹 Inform user failed container deploy (#1332)
doctrino Jan 6, 2025
09d845f
[CDF-22968] 🧛 Force space wait (#1333)
doctrino Jan 6, 2025
ec16201
[CDF-22324] 🧚 Empty csv (#1334)
doctrino Jan 6, 2025
3cee900
chore(deps): lock file maintenance (#1336)
renovate[bot] Jan 6, 2025
e44a9bb
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Jan 6, 2025
b2ea10c
[CDF-23634] 👮 Limit cdf modules pull (#1337)
doctrino Jan 6, 2025
5fcc67b
Prepare 0.3.24 (#1338)
doctrino Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
run: |
poetry install
poetry build
- name: Install cdf-tk
- name: Install Cognite Toolkit
run: pip install .
- name: "Not collect metrics"
run: cdf collect opt-out
Expand All @@ -157,15 +157,15 @@ jobs:
- name: "Pre-processing for demo environment"
run: python ./demo/preproc.py --modules all
- name: "Build the templates"
run: cdf build --build-dir=./build --env=demo -o ./demo_project
run: cdf build --env demo -o demo_project
- name: "Verify and create access rights"
run: cdf auth verify --no-prompt
- name: "Test clean --dry-run"
run: |
cdf clean --env=demo ./build --dry-run
cdf clean --env demo --dry-run
- name: "Deploy the templates --dry-run"
run: |
cdf deploy --drop --env=demo ./build --dry-run
cdf deploy --drop --env demo --dry-run


Build-image:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: cdf auth verify --no-prompt
- name: "Deploy the templates"
run: |
cdf-tk deploy --drop --env=demo ./build
cdf deploy --env demo
- name: "Run transformations and other post-processing"
run: |
poetry run python ./demo/postproc.py
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- --fixable=E,W,F,I,T,RUF,TID,UP
- --target-version=py39
- id: ruff-format
rev: v0.8.2
rev: v0.8.5

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.cdf-tk.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ Changes are grouped as follows:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.3.24] - 2025-01-06

### Added

- [alpha feature] Support for running `cdf build` without comparing against CDF project for missing dependencies
with the flag `--offline`.
- [alpha feature] New subcommand `cdf modules pull` which pulls the configuration from the CDF project to the local
modules directory.
- Support for property `dataModelingType` in `LocationFilter` resources.

### Fixed

- No more warning about missing `.env` file when running in `Google Cloud Build`.
- No more warning about missing `.env` file if all variables are set in the environment.
- When deploying a `Sequence` resource, Cognite Toolkit now replaces `dataSetExternalId` with `dataSetId`.
- Cognite Toolkit has improved resources that have server set default values that can lead to redeploy even when
unchanged. This includes `Sequences`, `Containers`, `DataSets`, `Views`, `Nodes`, `Edges`, `ExtractionPipelines`,
`CogniteFiles`, `HostedExtractorJobs`, `Relationships`, `RobotMaps`, and `WorkflowVersions`.
- When uploading a `csv` file (RAW table, Datapoints, or Assets) any CSV dialect is now supported.
- `LocationFilters` now parses the `version` key of `View` and `DataModel` correctly as a string.
- `LocationFilters` now converts an empty string of `dataSetExternalId` to `0` instead of ignoring it.
- On CDF deployed on Azure and AWS clouds, setting the `CPU` and `memory` of a CogniteFiles to lower than
the required value no longer triggers a redeploy.
- Toolkit now looks up the `assetExternalId` in the `Sequence` resource when deploying.

## [0.3.23] - 2024-12-13

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Changes are grouped as follows:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.3.24] - 2025-01-06

### Fixed

- Renamed non-toolkit Function config files for `bootcamp` module.

## [0.3.23] - 2024-12-13

No changes to templates.
Expand Down
8 changes: 7 additions & 1 deletion cdf.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ module-repeat = true
edges = true
classic = true
purge = true
build-offline = true
module-pull = true
# This is not activated as it will break the tests
# (tests needs to switch between alpha flags activated and not activated)
# That is not easily possible with this flag.
function-multi-file-hash = false

[plugins]
run = true
Expand All @@ -23,4 +29,4 @@ dump = true
[modules]
# This is the version of the modules. It should not be changed manually.
# It will be updated by the 'cdf module upgrade' command.
version = "0.3.23"
version = "0.3.24"
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ CDF_PROJECT: <YOUR CDF PROJECT> # ex. cdf-bootcamp-01-test
IDP_CLIENT_ID: ${IDP_CLIENT_ID} # replaced by .env
IDP_CLIENT_SECRET: ${IDP_CLIENT_SECRET} # replaced by .env
IDP_TENANT_ID: ${IDP_TENANT_ID} # replaced by .env
# This is related to the cluster where the CDF project is hosted.
# This is related to the cluster where the CDF project is hosted.
CDF_URL: https://westeurope-1.cognitedata.com
IDP_SCOPES: https://westeurope-1.cognitedata.com/.default
IDP_TOKEN_URL: ${IDP_TOKEN_URL} # replaced by .env

# Groups
### Groups
# OBJECT ID FOR TEST/PROD DATA PIPELINE OEE ENTRA GROUP
data_pipeline_oee_source_id: <NotSet>
# OBJECT ID FOR TEST/PROD ADMIN TK ENTRA GROUP
Expand All @@ -16,6 +16,8 @@ readwrite_source_id: <NotSet>
readonly_source_id: <NotSet>
# OBJECT ID FOR TEST/PROD ICAPI EXTRACTORS ENTRA GROUP
icapi_extractors_source_id: <NotSet>
# OBJECT ID FOR TEST/PROD DATA DEVELOPER ENTRA GROUP
data_developer_source_id: <NotSet>

# Client Ids
data_pipeline_oee_client_id: ${DATA_PIPELINE_OEE_CLIENT_ID} # replaced by .env
Expand Down
2 changes: 1 addition & 1 deletion cognite_toolkit/_builtin_modules/cdf.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_env = "<DEFAULT_ENV_PLACEHOLDER>"
[modules]
# This is the version of the modules. It should not be changed manually.
# It will be updated by the 'cdf module upgrade' command.
version = "0.3.23"
version = "0.3.24"


[plugins]
Expand Down
3 changes: 3 additions & 0 deletions cognite_toolkit/_builtin_modules/cdf_ingestion/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ tags = [

[dependencies]
modules = []

[[extra_resources]]
location = "cdf_common/data_sets/demo.DataSet.yaml"
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ capabilities:
- READ
scope:
all: {}
- diagramParsingAcl:
actions:
- READ
scope:
all: {}
- digitalTwinAcl:
actions:
- READ
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ capabilities:
- READ
scope:
all: {}
- diagramParsingAcl:
actions:
- WRITE
- READ
scope:
all: { }
- digitalTwinAcl:
actions:
- WRITE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: TimeSeries Transformations for {{ sourceName }}
destination:
type: nodes
view:
space: {{ schemaSpace}}
space: {{ schemaSpace }}
externalId: {{ organization }}TimeSeries
version: v1
instanceSpace: {{ instanceSpace }}
Expand Down
16 changes: 16 additions & 0 deletions cognite_toolkit/_cdf_tk/apps/_auth_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ def init(
help="If you verify, and you pass this flag no changes to CDF will be made.",
),
] = False,
verbose: Annotated[
bool,
typer.Option(
"--verbose",
"-v",
help="Turn on to get more verbose output when running the command",
),
] = False,
) -> None:
"""Sets the OIDC parameters required to authenticate and authorize the Cognite Toolkit in Cognite Data Fusion.

Expand Down Expand Up @@ -74,6 +82,14 @@ def verify(
"If you include this flag, the execution will stop if the user or service principal does not have the required capabilities.",
),
] = False,
verbose: Annotated[
bool,
typer.Option(
"--verbose",
"-v",
help="Turn on to get more verbose output when running the command",
),
] = False,
) -> None:
"""Verify that the current user or service principal has the required capabilities to run the CDF Toolkit commands."""
cmd = AuthCommand()
Expand Down
Loading
Loading