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

STAC-21039 Moving towards DataDog 7.51.1 tag. #304

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ad0ab92
STAC-21039 Moving towards DataDog 7.51.1 tag.
LouisParkin May 15, 2024
f7e9f07
STAC-21039 Moving towards DataDog 7.51.1 tag. [2] Fix broken runner b…
LouisParkin May 15, 2024
594268b
STAC-21039 Moving towards DataDog 7.51.1 tag. [2] Switch to python 3.…
LouisParkin May 15, 2024
ed5c553
STAC-21039 Moving towards DataDog 7.51.1 tag. [3] Bump pyyaml version.
LouisParkin May 15, 2024
39deb6e
STAC-21039 Moving towards DataDog 7.51.1 tag. [3] Undo Bump pyyaml ve…
LouisParkin May 15, 2024
407a869
STAC-21039 Moving towards DataDog 7.51.1 tag. [3] Debugging broken py…
LouisParkin May 15, 2024
2c8cce7
STAC-21039 Moving towards DataDog 7.51.1 tag. [4] Debugging broken py…
LouisParkin May 15, 2024
fc25311
STAC-21039 Moving towards DataDog 7.51.1 tag. [5] Debugging broken py…
LouisParkin May 15, 2024
20228d1
STAC-21039 Moving towards DataDog 7.51.1 tag. [6] Changes to pip vers…
LouisParkin May 21, 2024
0f0fdc8
STAC-21039 Moving towards DataDog 7.51.1 tag. [7] Changes to pip and …
LouisParkin May 21, 2024
a3af74c
STAC-21039 Moving towards DataDog 7.51.1 tag. [8] Changes to python v…
LouisParkin May 21, 2024
96d42b5
STAC-21039 Moving towards DataDog 7.51.1 tag. [9] Try to figure out w…
LouisParkin May 21, 2024
d5a3e36
Revert "STAC-21039 Moving towards DataDog 7.51.1 tag. [9] Try to figu…
LouisParkin May 21, 2024
85c5faf
STAC-21039 Moving towards DataDog 7.51.1 tag. [10] Fix mismatched dep…
LouisParkin May 28, 2024
b0da610
STAC-21039 Moving towards DataDog 7.51.1 tag. [11] Fix mismatched dep…
LouisParkin May 28, 2024
da09224
STAC-21039: Drop unused integrations
craffit Sep 16, 2024
bafad4d
STAC-21039: Fix checks-base
craffit Sep 17, 2024
b68b99f
STAC-21039: Fix dynatrace checks
craffit Sep 17, 2024
e0de4b3
STAC-21039: Fix openmetrics base check
craffit Sep 18, 2024
d576c70
STAC-21039: Fix kubelet check
craffit Sep 18, 2024
16f1193
STAC-21039: Fix servicenow
craffit Sep 19, 2024
cf83a19
STAC-21039: Fix splunk
craffit Sep 19, 2024
59fc480
STAC-21039: Add missing file
craffit Sep 19, 2024
e0fc54b
STAC-21039: Fix docker compose
craffit Sep 19, 2024
8b306ee
STAC-21039: Fix static checks:
craffit Sep 19, 2024
dcaee8c
STAC-21039: Fix vsphere check
craffit Sep 19, 2024
900aad4
STAC-21039: Fix permission for docker-compose
craffit Sep 19, 2024
3cd2e4a
STAC-21039: Bump base image
craffit Sep 19, 2024
9fa42af
STAC-21039: Fix prometheus client bump
craffit Sep 19, 2024
8279e7e
STAC-0: Bump the metric limit for prometheus and open metrics check
aacevedoosorio Jul 30, 2024
8849f1e
STAC-21604 Fix for incorrect type on parameter.
LouisParkin Aug 16, 2024
b3e5b3e
STAC-21604 Adding fix for missing dictionary key.
LouisParkin Aug 16, 2024
8b80287
STAC-21039: Lower logging on pyyaml patching
craffit Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
143 changes: 2 additions & 141 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
image: artifactory.tooling.stackstate.io/docker-virtual/stackstate/stackstate-agent-integrations-runner:latest-py38
image: artifactory.tooling.stackstate.io/docker-virtual/stackstate/stackstate-agent-integrations-runner:20240919-py311
stages:
- build
- test
- publish

variables:
CONDA_ENV: "stackstate-agent-integrations-py-3"
PYTHON_VERSION: 3.8.11
PYTHON_VERSION: 3.11.8

.rules:
- &pull_requests
Expand Down Expand Up @@ -143,19 +143,6 @@ linux_deps:
- venv/
expire_in: 1 week

win_deps:
<<: *windows_env
<<: *manual_job_rules
stage: build
interruptible: true
script:
- conda activate $CONDA_ENV
- python -m pip install .\stackstate_checks_dev[cli]
artifacts:
paths:
- venv/
expire_in: 1 week

.linux_test: &linux_test
<<: *linux_env
<<: *base_integration_rules
Expand Down Expand Up @@ -202,14 +189,6 @@ test_stackstate_checks_dev:
tags:
- sts-k8s-xl-no-docker-runner

test_kubernetes:
<<: *linux_test
variables:
CHECK: "kubernetes"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_dynatrace_base:
<<: *linux_test
variables:
Expand All @@ -234,7 +213,6 @@ test_dynatrace_health:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2


test_kubelet:
<<: *linux_test
variables:
Expand All @@ -243,19 +221,6 @@ test_kubelet:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_mysql:
<<: *linux_test
variables:
CHECK: "mysql"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
tags:
#- sts-k8s-xl-runner
#- sts-aws
- sts-k8s-xl-no-docker-runner

test_openmetrics:
<<: *linux_test
variables:
Expand Down Expand Up @@ -308,49 +273,6 @@ test_splunk_metric:
tags:
- sts-k8s-xl-no-docker-runner

test_splunk_event:
<<: *linux_test
variables:
CHECK: "splunk_event"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
tags:
- sts-k8s-xl-no-docker-runner

test_cloudera:
<<: *linux_test
variables:
CHECK: "cloudera"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_aws_topology:
<<: *linux_test
variables:
CHECK: "aws_topology"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_aws_xray:
<<: *linux_test
variables:
CHECK: "aws_xray"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_sap:
<<: *linux_test
variables:
CHECK: "sap"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_agent_integration_sample:
<<: *linux_test
variables:
Expand Down Expand Up @@ -431,67 +353,6 @@ test_static_health:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_nagios:
<<: *linux_test
variables:
CHECK: "nagios"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2

test_solarwinds:
<<: *linux_test
variables:
CHECK: "solarwinds"
PYTHON3: "true"
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2


.windows_test: &windows_test
<<: *windows_env
<<: *base_integration_manual_rules
stage: test
needs:
- win_deps
script:
- conda activate $CONDA_ENV
- checksdev test -c %CHECK%
interruptible: true
tags:
- windows_agent7_ps1
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
- script_failure

test_stackstate_checks_dev_win:
<<: *windows_test
variables:
CHECK: "stackstate_checks_dev:py3-default,stackstate_checks_dev:flake8"

test_stackstate_checks_base_win:
<<: *windows_test
variables:
CHECK: "stackstate_checks_base"

test_wmi_check:
<<: *windows_test
variables:
CHECK: "wmi_check"

test_cloudera_win:
<<: *windows_test
variables:
CHECK: "cloudera"

test_aws_xray_win:
<<: *windows_test
variables:
CHECK: "aws_xray"

publish-checks-dev:
stage: publish
interruptible: true
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.11
3.11.8
2 changes: 1 addition & 1 deletion .setup-scripts/conda_env.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$envName = $args[0]
$pythonVersion = $args[1]
if ($pythonVersion -eq '3') {
$pythonVersion = '3.8'
$pythonVersion = '3.11'
}
$env_name = conda env list | grep $envName | awk '{print $1}'
if (($env_name -ne $null) -and ($env_name -eq $envName)) {
Expand Down
5 changes: 3 additions & 2 deletions .setup-scripts/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM artifactory.tooling.stackstate.io/docker-virtual/python:3.8.11
FROM artifactory.tooling.stackstate.io/docker-virtual/python:3.11.8-bullseye
RUN apt-get update && \
apt-get install -y virtualenv apt-transport-https ca-certificates curl gnupg2 software-properties-common && \
apt-get clean && \
Expand All @@ -10,4 +10,5 @@ RUN add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/de
apt-get install -y docker-ce docker-ce-cli containerd.io && \
apt-get clean

RUN curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
8 changes: 4 additions & 4 deletions .setup-scripts/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ RUNTIMETAG := $(shell date +%Y%m%d)
# vvv New runner

build:
docker build -t stackstate/stackstate-agent-integrations-runner:$(RUNTIMETAG)-py38 .
docker build -t stackstate/stackstate-agent-integrations-runner:$(RUNTIMETAG)-py311 .
push:
docker push stackstate/stackstate-agent-integrations-runner:$(RUNTIMETAG)-py38
docker push stackstate/stackstate-agent-integrations-runner:$(RUNTIMETAG)-py311

tag_latest:
docker tag stackstate/stackstate-agent-integrations-runner:$(RUNTIMETAG)-py38 stackstate/stackstate-agent-integrations-runner:latest-py38
docker tag stackstate/stackstate-agent-integrations-runner:$(RUNTIMETAG)-py311 stackstate/stackstate-agent-integrations-runner:latest-py311

push_latest:
docker push stackstate/stackstate-agent-integrations-runner:latest-py38
docker push stackstate/stackstate-agent-integrations-runner:latest-py311
9 changes: 6 additions & 3 deletions .setup-scripts/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ VENV_PATH=$INTEGRATIONS_DIR_TMP/venv

if [ ! -d $VENV_PATH ]; then
echo "$VENV_PATH doesn't exist, create the venv and loading deps"
virtualenv --python=python3.8 --pip=23.1.2 $INTEGRATIONS_DIR_TMP/venv
virtualenv --python=python3.11 --pip=23.3.1 $INTEGRATIONS_DIR_TMP/venv
source $INTEGRATIONS_DIR_TMP/venv/bin/activate
pip install pylint==2.17.2
pip install docker==6.1.3
pip install -U setuptools
pip install --upgrade pip setuptools
pip install 'cython<3.0.0'
pip install "pyyaml==5.4.1" --no-build-isolation
pip install --upgrade wheel
source $INTEGRATIONS_DIR_TMP/.setup-scripts/load_deps.sh
else
echo "$VENV_PATH already exists, only activating the venv"
ls $INTEGRATIONS_DIR_TMP/venv/bin || echo 'no bin'
ls $INTEGRATIONS_DIR_TMP/venv/lib/python3.8/site-packages || echo 'no site-packages'
ls $INTEGRATIONS_DIR_TMP/venv/lib/python3.11/site-packages || echo 'no site-packages'
source $INTEGRATIONS_DIR_TMP/venv/bin/activate
pip install pylint==2.17.2
pip install docker==6.1.3
Expand Down
2 changes: 1 addition & 1 deletion agent_integration_sample/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ envlist =
flake8

[testenv]
pip_version = pip==19.3.1
pip_version = pip==23.3.1
usedevelop = true
platform = linux|darwin|win32
deps =
Expand Down
2 changes: 1 addition & 1 deletion agent_v2_integration_sample/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ envlist =
flake8

[testenv]
pip_version = pip==19.3.1
pip_version = pip==23.3.1
usedevelop = true
platform = linux|darwin|win32
deps =
Expand Down
2 changes: 1 addition & 1 deletion agent_v2_integration_stateful_sample/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ envlist =
flake8

[testenv]
pip_version = pip==19.3.1
pip_version = pip==23.3.1
usedevelop = true
platform = linux|darwin|win32
deps =
Expand Down
2 changes: 1 addition & 1 deletion agent_v2_integration_transactional_sample/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ envlist =
flake8

[testenv]
pip_version = pip==19.3.1
pip_version = pip==23.3.1
usedevelop = true
platform = linux|darwin|win32
deps =
Expand Down
3 changes: 0 additions & 3 deletions aws_topology/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions aws_topology/CHANGELOG.md

This file was deleted.

10 changes: 0 additions & 10 deletions aws_topology/MANIFEST.in

This file was deleted.

78 changes: 0 additions & 78 deletions aws_topology/README.md

This file was deleted.

Loading