Skip to content

Commit 7e18bb0

Browse files
authored
Merge branch 'master' into nubtron/fix-repos-core
2 parents 4eb5b6d + 09056ae commit 7e18bb0

File tree

1,164 files changed

+159342
-8656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,164 files changed

+159342
-8656
lines changed

.builders/images/linux-aarch64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS && \
3636
ldconfig
3737

3838
# Compile and install Python 3
39-
ENV PYTHON3_VERSION=3.12.9
39+
ENV PYTHON3_VERSION=3.12.10
4040
RUN yum install -y libffi-devel && \
4141
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
4242
VERSION="${PYTHON3_VERSION}" \
43-
SHA256="45313e4c5f0e8acdec9580161d565cf5fea578e3eabf25df7cc6355bf4afa1ee" \
43+
SHA256="15d9c623abfd2165fe816ea1fb385d6ed8cf3c664661ab357f1782e3036a6dac" \
4444
RELATIVE_PATH="Python-{{version}}" \
4545
bash install-from-source.sh \
4646
--prefix=/opt/python/${PYTHON3_VERSION} \

.builders/images/linux-x86_64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS && \
3535
ldconfig
3636

3737
# Compile and install Python 3
38-
ENV PYTHON3_VERSION=3.12.9
38+
ENV PYTHON3_VERSION=3.12.10
3939
RUN yum install -y libffi-devel && \
4040
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
4141
VERSION="${PYTHON3_VERSION}" \
42-
SHA256="45313e4c5f0e8acdec9580161d565cf5fea578e3eabf25df7cc6355bf4afa1ee" \
42+
SHA256="15d9c623abfd2165fe816ea1fb385d6ed8cf3c664661ab357f1782e3036a6dac" \
4343
RELATIVE_PATH="Python-{{version}}" \
4444
bash install-from-source.sh --prefix=/opt/python/${PYTHON3_VERSION} --with-ensurepip=yes --enable-ipv6 --with-dbmliborder=
4545
ENV PATH="/opt/python/${PYTHON3_VERSION}/bin:${PATH}"

.builders/images/windows-x86_64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ RUN Get-RemoteFile `
8282
Approve-File -Path $($Env:USERPROFILE + '\.cargo\bin\rustc.exe') -Hash $Env:RUSTC_HASH
8383

8484
# Install Python 3
85-
ENV PYTHON_VERSION="3.12.9"
85+
ENV PYTHON_VERSION="3.12.10"
8686
RUN Get-RemoteFile `
8787
-Uri https://www.python.org/ftp/python/$Env:PYTHON_VERSION/python-$Env:PYTHON_VERSION-amd64.exe `
8888
-Path python-$Env:PYTHON_VERSION-amd64.exe `
89-
-Hash '2a52993092a19cfdffe126e2eeac46a4265e25705614546604ad44988e040c0f'; `
89+
-Hash '67b5635e80ea51072b87941312d00ec8927c4db9ba18938f7ad2d27b328b95fb'; `
9090
Start-Process -Wait python-$Env:PYTHON_VERSION-amd64.exe -ArgumentList '/quiet', 'InstallAllUsers=1'; `
9191
Remove-Item python-$Env:PYTHON_VERSION-amd64.exe; `
9292
& 'C:\Program Files\Python312\python.exe' -m pip install --no-warn-script-location --upgrade pip; `

.codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ coverage:
106106
target: 75
107107
flags:
108108
- cassandra_nodetool
109+
Celery:
110+
target: 75
111+
flags:
112+
- celery
109113
Ceph:
110114
target: 75
111115
flags:
@@ -873,6 +877,11 @@ flags:
873877
paths:
874878
- cassandra_nodetool/datadog_checks/cassandra_nodetool
875879
- cassandra_nodetool/tests
880+
celery:
881+
carryforward: true
882+
paths:
883+
- celery/datadog_checks/celery
884+
- celery/tests
876885
ceph:
877886
carryforward: true
878887
paths:

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ exclude_lines =
5555

5656
# Ignore non-runnable code
5757
if __name__ == .__main__.:
58+
59+
# Ignore TYPE_CHECKING blocks
60+
if TYPE_CHECKING:

.cursor/rules/documentation.mdc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
description:
3+
globs: *md
4+
alwaysApply: false
5+
---
6+
## New files added
7+
When a new file is added make sure to make it available through the navigation configuration in the mkdocs file. If it is not clear where it should go, ask.
8+
9+
## Style
10+
Maintain style consistent. The style should be technical and professional.
11+
12+
Do not start lines/paragraphs with an inline code.

.cursor/rules/python-type-hinting.mdc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
description:
3+
globs: **/*.py
4+
alwaysApply: false
5+
---
6+
## Generating new code
7+
When generating python code, always add type hinting to the methods. Use modern syntaxis, for example, instead of using `Optional[str]` use `str | None` and instead of using `List[str]` use `list[str]`.
8+
9+
If a method yields a value but we are not returning anything or we do not accept anything sent to the generator, it is better to type the method as Iterator to explicitely expose the API of the method as simply something the caller can iterate over.
10+
11+
## Refactoring code
12+
When refactoring existing code, never add type hints to method that are not type hinted unless asked explicitely.
13+
14+
## The case of AnyStr
15+
AnyStr is normally used to define the type of a variable that can be either a string or bytes. This is soon to be deprecated and, instead, type parameter lits are a better solution. If AnyStr is used as type of several arguments in a given method signature, it is better to use type parameter lists and define the function as a generic function.
16+
17+
```python
18+
# Soon to be deprecated
19+
def func(a: AnySTr, b: AnyStr):
20+
pass
21+
22+
# Preferred
23+
def func[T: (str, bytes)](a: T, b: T):
24+
pass
25+
```
26+
27+
This way, whether a and b are either strings or bytes, they cannot be mixed.
28+
29+
If a single argument is present in the function, `str | bytes` is preferred.

.cursor/rules/testing.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ description:
33
globs: **/*.py
44
alwaysApply: false
55
---
6-
Run unit and integration tests with `ddev --no-interactive test <INTEGRATION>`. For example, for the pbouncer integration, run `ddev --no-interactive test pgbouncer`.
7-
Run E2E tests with `ddev ddev --no-interactive env test <INTEGRATION> --dev`. For example, for the pbouncer integration, run `ddev ddev --no-interactive env test pgbouncer --dev`.
6+
Run unit and integration tests with `ddev --no-interactive test <INTEGRATION>`. For example, for the pgbouncer integration, run `ddev --no-interactive test pgbouncer`.
7+
Run E2E tests with `ddev --no-interactive env test <INTEGRATION> --dev`. For example, for the pgbouncer integration, run `ddev --no-interactive env test pgbouncer --dev`.

.ddev/ci/scripts/ddev/linux/55_fetch_master.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -ex
44

5-
# Only required on pull requests
6-
if [[ $GITHUB_BASE_REF ]]; then
5+
# Only required on non-master branches
6+
if [[ "$GITHUB_REF_NAME" != "master" ]]; then
77
git fetch origin master:master
88
fi
99

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:: Only required on pull requests
2-
if defined GITHUB_BASE_REF (
1+
:: Only required on non-master branches
2+
if "%GITHUB_REF_NAME%" NEQ "master" (
33
git fetch origin master:master
44
)

.ddev/ci/scripts/singlestore/linux/55_set_license_secret.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

.ddev/config.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ semver = ['BSD-3-Clause']
9393
simplejson = ['MIT']
9494
# https://github.com/Supervisor/supervisor/blob/master/LICENSES.txt
9595
supervisor = ['BSD-3-Clause-Modification']
96+
# https://github.com/prometheus/client_python/issues/1110
97+
prometheus-client = ['Apache-2.0']
9698

9799
[overrides.dependencies.repo]
98100
PyYAML = 'https://github.com/yaml/pyyaml'
@@ -130,6 +132,7 @@ exclude = [
130132
'go-metro',
131133
'http_check',
132134
'kubelet',
135+
'kubevirt',
133136
'kubernetes_state',
134137
'network',
135138
'ntp',
@@ -148,7 +151,6 @@ unsorted = [
148151

149152
[overrides.dep.updates]
150153
exclude = [
151-
'ddtrace', # https://github.com/DataDog/integrations-core/pull/9132
152154
'pyasn1', # https://github.com/pyasn1/pyasn1/issues/52
153155
'pysmi', # pysnmp dependent on pysmi version 1.2.1
154156
'pysnmp', # Breaking snmp tests
@@ -159,7 +161,7 @@ exclude = [
159161
# https://github.com/DataDog/integrations-core/pull/15859
160162
'psycopg2-binary',
161163
'psutil',
162-
'pymongo[srv]', # Upgrade from 4.8.0 to 4.10.1 causes "AttributeError: module 'pymongo' has no attribute 'mongo_client'"
164+
'pymongo', # Upgrade from 4.8.0 to 4.10.1 causes "AttributeError: module 'pymongo' has no attribute 'mongo_client'"
163165
]
164166

165167
# Dependencies for the downloader that are security-related and should be updated separately from the others

.deps/image_digests.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"linux-aarch64": "sha256:1a4a3ea10f1c2cafb3dc1fd9eda02826026e0e660f670f9c065b6b0782f4d901",
3-
"linux-x86_64": "sha256:00483449e9a400fc6e5a8433cb063f0946e20e1feda5f70b910d1bd451b63936",
4-
"windows-x86_64": "sha256:9f34e9b4e33bb55f8e25ef12d7ec6e7e9f6916691a0b849bb1ebfb65e153f2d9"
2+
"linux-aarch64": "sha256:fe7765187251f8ad4b944de52ac93aae21e0b05b3cd132f18949365ef83480c8",
3+
"linux-x86_64": "sha256:0b78aff97c081fe3e478f29eeb19f54473812a7510eed1527c269051d1ba8534",
4+
"windows-x86_64": "sha256:e35fdbbd4fb4201ee6d203a437175ccf527775a8c371cefd5888bdcfabc3af9c"
55
}

.deps/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"sha256": "31b12fc41197bf7276278e2eff6b288ff53f922e96277aa9b8dfff37f272beea"
2+
"sha256": "ad5ab7530687a62ff2ff0cffc75902d1998a727ad410f3e59d9e0fae0236d25d"
33
}

0 commit comments

Comments
 (0)