Skip to content

Commit

Permalink
some feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hughesjj committed Feb 4, 2025
1 parent 5112bc6 commit 2cc24bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
30 changes: 13 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ variables:
WIN_2019_BASE_IMAGE: mcr.microsoft.com/windows/servercore:ltsc2019
WIN_2022_BASE_IMAGE: mcr.microsoft.com/windows/servercore:ltsc2022
SPLUNK_OTELCOL_DOWNLOAD_BASE:
value: 'https://github.com/signalfx/splunk-otel-collector/releases/download'
value: "https://github.com/signalfx/splunk-otel-collector/releases/download"
description: 'URL to download artifacts from'
BUILD_DIR:
value: '${CI_PROJECT_DIR}/build'
Expand All @@ -20,15 +20,15 @@ stages:
- update-deps
- sast-oss-scan
- build
- code_analysis
- sign-binaries
- package
- code-analysis
- orca-tests
- sign-packages
- release
- docker-manifest-release
- xray-scan
- github-release
- Deploy and Verify

include:
- project: 'prodsec/scp-scanning/gitlab-checkmarx'
Expand Down Expand Up @@ -435,15 +435,15 @@ agent-bundle-windows:
pip install --upgrade pip
pip install --upgrade splunk-orca
splunk_orca --help
cd ~
pushd ~
echo ${ORCA_TAR_GZ} | base64 -d > orca_cred.tar.gz
tar -xzvf ~/orca_cred.tar.gz
echo "area = otel-collector" >> ~/.orca/orca.conf
cd -
popd
build-all-platforms:
package-techical-addon:
image: "${DOCKER_CICD_REPO}/ci-container/python-3.11-bullseye:1.19.0"
stage: "build"
stage: "package"
script: |
make distribute-ta -e
artifacts:
Expand All @@ -454,28 +454,25 @@ build-all-platforms:
parallel:
matrix:
- PLATFORM: ["all"]
ARCH: ["amd64"]

test-happypath-ta:
image: "${DOCKER_CICD_REPO}/ci-container/python-3.11-bullseye:1.19.0"
extends: .auth-setup
stage: Deploy and Verify
stage: orca-tests
dependencies:
- "build-all-platforms"
- "package-technical-addon"
parallel:
matrix:
- UF_VERSION: ["9.0.2", "8.2.7"]
SPLUNK_PLATFORM: ["x64_centos_7"]
ORCA_CLOUD: ["aws"]
ORCA_OPTION: [""]
PLATFORM: ["linux"]
ARCH: ["amd64"]
- UF_VERSION: ["9.0.2", "8.2.7"]
SPLUNK_PLATFORM: ["x64_windows_2019"]
SPLUNK_PLATFORM: ["x64_windows_2019","x64_windows_2022" ]
ORCA_CLOUD: ["aws"]
ORCA_OPTION: [""]
PLATFORM: ["windows"]
ARCH: ["amd64"]
script: |
make orca-test-ta -e
after_script:
Expand All @@ -499,9 +496,8 @@ test-happypath-ta:
AppInspect_local:
image: "${DOCKER_CICD_REPO}/ci-container/python-3.11-bullseye:1.19.0"
dependencies:
- "build-all-platforms"
stage: code_analysis
# From https://cd.splunkdev.com/splcore/dynamic-data-self-storage-app/-/blob/develop/.gitlab-ci.yml#L193
- "package-technical-addon"
stage: code-analysis
# AppInspect regex bugs out on python 3.11
image: docker.repo.splunkdev.net/ci-cd/ci-container/python-3.9:1.26.0
before_script:
Expand All @@ -521,7 +517,7 @@ AppInspect_local:

spell check:
image: "${DOCKER_CICD_REPO}/ci-container/node-18-alpine:1.9.0"
stage: code_analysis
stage: code-analysis
script: |
npm install -g cspell@latest
cd $CI_PROJECT_DIR/packaging/technical-addon/Splunk_TA_otel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do

if [[ "$count" -gt "0" ]] && jq '[.results[].created, .results[].lastUpdated] | max as $max | $max >= ($ENV.CUTOFF | tonumber)' "$TEST_FOLDER/uptime.json" ; then
break
else
ATTEMPT=$((ATTEMPT + 1))
sleep $DELAY
fi
ATTEMPT=$((ATTEMPT + 1))
sleep $DELAY
done
if [ $ATTEMPT -gt $MAX_ATTEMPTS ]; then
echo "Failed find metrics in last 5m after $MAX_ATTEMPTS attempts."
Expand Down

0 comments on commit 2cc24bc

Please sign in to comment.