Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2fb6bfc
RTECO-1649 - Add APM E2E tests
udaykb2 Aug 12, 2026
cbb18b5
fix build errors
udaykb2 Aug 14, 2026
0c4c3e3
Merge branch 'master' into RTECO-1649-apm-e2e-tests-final
udaykb2 Aug 14, 2026
608c5a3
Merge branch 'master' into RTECO-1649-apm-e2e-tests-final
udaykb2 Aug 14, 2026
f618138
fix failure tests
udaykb2 Aug 14, 2026
a8afd18
Merge branch 'RTECO-1649-apm-e2e-tests-final' of https://github.com/j…
udaykb2 Aug 14, 2026
6ede2fe
Fix APM e2e tests: Use correct repository name constant
udaykb2 Aug 14, 2026
514de89
Install APM in CI instead of downloading in tests
udaykb2 Aug 14, 2026
eef0df6
Fix APM test setup command: use correct CLI prefix
udaykb2 Aug 14, 2026
32d5d7e
Fix all APM command executions: use correct CLI prefix
udaykb2 Aug 14, 2026
7565197
Fix remaining APM test issues: helper functions CLI prefix + apm.yml …
udaykb2 Aug 14, 2026
5bdb1b3
Fix all apm.yml registry format references to use registry names
udaykb2 Aug 14, 2026
cbf269b
Fix APM registry configuration: remove explicit registry definitions …
udaykb2 Aug 14, 2026
9a5fae6
Update APM version to v0.23.1 and add targets to all apm.yml files
udaykb2 Aug 14, 2026
30b7570
Add license field to all apm.yml definitions
udaykb2 Aug 14, 2026
ae4f8c9
Fix critical APM test bugs found via live testing against bughuntapm
udaykb2 Aug 14, 2026
062e663
tests: add project-scoped GetBuildInfoInProject helper
udaykb2 Aug 14, 2026
17bda94
Fix APM build-info validation: read from server, not local partials
udaykb2 Aug 14, 2026
3e0de9d
tests: fix SearchFiles decoding into the wrong result struct
udaykb2 Aug 14, 2026
1005b5f
Fix 4 more APM test bugs found via live testing
udaykb2 Aug 14, 2026
8cd4b03
Fix TestApmProjectFlag env-fragility and TestApmBuildInfoRead's fake …
udaykb2 Aug 14, 2026
7be8352
Fix duplicate 'version:' key in apm.yml and 2 more test bugs
udaykb2 Aug 14, 2026
e107377
Fix gosec finding, weak checksum test, meaningless auth-env test, dro…
udaykb2 Aug 15, 2026
f23110a
Add TestApmNativeCliWorksWithJfSetupCredentials
udaykb2 Aug 15, 2026
1b6600f
Make TestApmSetupAndConfig actually verify --repo and default tracking
udaykb2 Aug 15, 2026
07e083d
Verify checksum correctness (not just format), strengthen dependency
udaykb2 Aug 15, 2026
1ee5c29
Rewrite auth/registry tests to verify real behavior instead of coinci…
udaykb2 Aug 15, 2026
930a1d1
Add TestApmMixedRegistryDependenciesInOneInstall
udaykb2 Aug 15, 2026
a39dac0
Fix 4 real CI failures, then combine tests with duplicated setup
udaykb2 Aug 15, 2026
64f561e
Merge branch 'master' into RTECO-1649-apm-e2e-tests-final
udaykb2 Aug 16, 2026
e2e2666
RTECO-1649 - Update e2e tests for 'jf setup apm' and rename APM CI wo…
udaykb2 Aug 16, 2026
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
102 changes: 102 additions & 0 deletions .github/workflows/agentApmTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Agent APM Tests

on:
workflow_call:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""

jobs:
Agent-APM-Tests:
name: agent-apm ${{ matrix.os.name }}
strategy:
fail-fast: false
matrix:
os:
- name: ubuntu
version: 24.04
- name: windows
version: 2022
- name: macos
version: 14
runs-on: ${{ matrix.os.name }}-${{ matrix.os.version }}
steps:
- name: Skip macOS - JGC-413
if: matrix.os.name == 'macos'
run: |
echo "::warning::JGC-413 - Skip until artifactory bootstrap in osx is fixed"
exit 0

- name: Checkout code
if: matrix.os.name != 'macos'
uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
# Safe: this workflow only runs after human approval via the build-gate environment.
allow-unsafe-pr-checkout: true

- name: Setup FastCI
if: matrix.os.name != 'macos'
uses: jfrog-fastci/fastci@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
fastci_otel_token: ${{ secrets.FASTCI_TOKEN }}

- name: Setup Go with cache
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-go-with-cache@main

- name: Install APM (Linux)
if: matrix.os.name == 'ubuntu'
run: |
APM_VERSION="v0.23.1"
OS="linux"
ARCH="x86_64"
curl -sL "https://github.com/microsoft/apm/releases/download/${APM_VERSION}/apm-${OS}-${ARCH}.tar.gz" -o apm.tar.gz
tar -xzf apm.tar.gz
sudo mkdir -p /opt/apm
sudo mv apm-${OS}-${ARCH}/* /opt/apm/
sudo chmod +x /opt/apm/apm
echo "/opt/apm" >> $GITHUB_PATH
rm -rf apm-${OS}-${ARCH} apm.tar.gz
/opt/apm/apm --version

- name: Install APM (Windows)
if: matrix.os.name == 'windows'
shell: pwsh
run: |
$APM_VERSION = "v0.28.0"
$OS = "windows"
$ARCH = "x86_64"
$APM_URL = "https://github.com/microsoft/apm/releases/download/${APM_VERSION}/apm-${OS}-${ARCH}.zip"
curl.exe -sL "$APM_URL" -o apm.zip
Expand-Archive -Path apm.zip -DestinationPath .
New-Item -ItemType Directory -Path "C:\tools\apm" -Force | Out-Null
Move-Item -Path "apm-${OS}-${ARCH}\*" -Destination "C:\tools\apm\" -Force
Add-Content -Path $env:GITHUB_PATH -Value "C:\tools\apm"
Remove-Item -Path "apm-${OS}-${ARCH}", "apm.zip" -Recurse -Force
& "C:\tools\apm\apm.exe" --version

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Run agent apm tests
if: matrix.os.name != 'macos'
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.apm
${{ env.JFROG_TESTS_IS_EXTERNAL == 'true' && format('--jfrog.url={0} --jfrog.adminToken={1}', env.JFROG_TESTS_URL, env.JFROG_TESTS_LOCAL_ACCESS_TOKEN) || '' }}
5 changes: 5 additions & 0 deletions .github/workflows/build-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
needs: gate
uses: ./.github/workflows/agentSkillsTests.yml
secrets: inherit
agent-apm:
needs: gate
uses: ./.github/workflows/agentApmTests.yml
secrets: inherit
access:
needs: gate
# OIDC suite: caller must grant id-token so the reusable workflow can request it.
Expand Down Expand Up @@ -182,6 +186,7 @@ jobs:
- frogbot
- agent-plugins
- agent-skills
- agent-apm
- access
- artifactory
- conan
Expand Down
Loading
Loading