From b4c68fce9b23e3f43912c2a173b4e348d87c90e9 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 16 Jan 2024 21:12:36 +0100 Subject: [PATCH 1/5] updatecli: use a different path --- .ci/{ => updatecli}/updatecli.d/update-gherkin-specs.yml | 0 .ci/{ => updatecli}/updatecli.d/update-json-specs.yml | 0 .ci/{ => updatecli}/updatecli.d/update-specs.yml | 0 .github/workflows/updatecli.yml | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) rename .ci/{ => updatecli}/updatecli.d/update-gherkin-specs.yml (100%) rename .ci/{ => updatecli}/updatecli.d/update-json-specs.yml (100%) rename .ci/{ => updatecli}/updatecli.d/update-specs.yml (100%) diff --git a/.ci/updatecli.d/update-gherkin-specs.yml b/.ci/updatecli/updatecli.d/update-gherkin-specs.yml similarity index 100% rename from .ci/updatecli.d/update-gherkin-specs.yml rename to .ci/updatecli/updatecli.d/update-gherkin-specs.yml diff --git a/.ci/updatecli.d/update-json-specs.yml b/.ci/updatecli/updatecli.d/update-json-specs.yml similarity index 100% rename from .ci/updatecli.d/update-json-specs.yml rename to .ci/updatecli/updatecli.d/update-json-specs.yml diff --git a/.ci/updatecli.d/update-specs.yml b/.ci/updatecli/updatecli.d/update-specs.yml similarity index 100% rename from .ci/updatecli.d/update-specs.yml rename to .ci/updatecli/updatecli.d/update-specs.yml diff --git a/.github/workflows/updatecli.yml b/.github/workflows/updatecli.yml index 313ec2d4a..6d354503a 100644 --- a/.github/workflows/updatecli.yml +++ b/.github/workflows/updatecli.yml @@ -18,7 +18,7 @@ jobs: vaultUrl: ${{ secrets.VAULT_ADDR }} vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} - pipeline: .ci/updatecli.d + pipeline: .ci/updatecli/updatecli.d - if: failure() uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current with: From 2f06df1f3dbe1825370aa3ce3fcc5ecfe7ca7a39 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 16 Jan 2024 21:17:20 +0100 Subject: [PATCH 2/5] updatecli: use dynamic json specs sync --- .../updatecli.d/update-gherkin-specs.yml | 110 +++++------------ .../updatecli.d/update-json-specs.yml | 116 +++++------------- .ci/updatecli/updatecli.d/update-specs.yml | 102 ++++++--------- .ci/updatecli/values.yml | 14 +++ 4 files changed, 117 insertions(+), 225 deletions(-) create mode 100644 .ci/updatecli/values.yml diff --git a/.ci/updatecli/updatecli.d/update-gherkin-specs.yml b/.ci/updatecli/updatecli.d/update-gherkin-specs.yml index 561278b0d..872596bce 100644 --- a/.ci/updatecli/updatecli.d/update-gherkin-specs.yml +++ b/.ci/updatecli/updatecli.d/update-gherkin-specs.yml @@ -1,6 +1,5 @@ name: update-gherkin-specs pipelineid: update-gherkin-specs -title: synchronize gherkin specs scms: default: @@ -8,17 +7,27 @@ scms: spec: user: '{{ requiredEnv "GIT_USER" }}' email: '{{ requiredEnv "GIT_EMAIL" }}' - owner: elastic - repository: apm-agent-php + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" token: '{{ requiredEnv "GITHUB_TOKEN" }}' username: '{{ requiredEnv "GIT_USER" }}' - branch: main + branch: "{{ .github.branch }}" + apm: + kind: github + spec: + user: '{{ requiredEnv "GIT_USER" }}' + email: '{{ requiredEnv "GIT_EMAIL" }}' + owner: "{{ .github.owner }}" + repository: "{{ .github.apm_repository }}" + token: '{{ requiredEnv "GITHUB_TOKEN" }}' + username: '{{ requiredEnv "GIT_USER" }}' + branch: "{{ .github.branch }}" sources: sha: kind: file spec: - file: 'https://github.com/elastic/apm/commit/main.patch' + file: 'https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ .github.branch }}.patch' matchpattern: "^From\\s([0-9a-f]{40})\\s" transformers: - findsubmatch: @@ -28,40 +37,26 @@ sources: dependson: - sha spec: - command: gh api /repos/elastic/apm/commits/{{ source "sha" }}/pulls --jq '.[].html_url' + command: gh api /repos/{{ .github.owner }}/{{ .github.apm_repository }}/commits/{{ source "sha" }}/pulls --jq '.[].html_url' environments: - name: GITHUB_TOKEN - name: PATH - api_key.feature: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/gherkin-specs/api_key.feature - azure_app_service_metadata.feature: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/gherkin-specs/azure_app_service_metadata.feature - azure_functions_metadata.feature: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/gherkin-specs/azure_functions_metadata.feature - otel_bridge.feature: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/gherkin-specs/otel_bridge.feature - outcome.feature: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/gherkin-specs/outcome.feature - user_agent.feature: - kind: file + agents-gherkin-specs-tarball: + kind: shell + scmid: apm + dependson: + - sha spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/gherkin-specs/user_agent.feature + command: tar cvzf {{ requiredEnv "GITHUB_WORKSPACE" }}/gherkin-specs.tgz . + environments: + - name: PATH + workdir: "{{ .specs.apm_gherkin_path }}" actions: pr: kind: "github/pullrequest" scmid: default - title: '[Automation] Update Gherkin specs' + name: '[Automation] Update Gherkin specs' spec: automerge: false draft: false @@ -70,57 +65,18 @@ actions: description: |- ### What APM agent Gherkin specs automatic sync + ### Why *Changeset* - * https://github.com/elastic/apm/commit/{{ source "sha" }} * {{ source "pull_request" }} + * https://github.com/elastic/apm/commit/{{ source "sha" }} targets: - api_key.feature: - name: api_key.feature + agent-gherkin-specs: + name: APM agent gherkin specs {{ source "sha" }} scmid: default - sourceid: api_key.feature - kind: file - spec: - file: tests/APM_Agents_shared/gherkin-specs/api_key.feature - forcecreate: true - azure_app_service_metadata.feature: - name: azure_app_service_metadata.feature - scmid: default - sourceid: azure_app_service_metadata.feature - kind: file - spec: - file: tests/APM_Agents_shared/gherkin-specs/azure_app_service_metadata.feature - forcecreate: true - azure_functions_metadata.feature: - name: azure_functions_metadata.feature - scmid: default - sourceid: azure_functions_metadata.feature - kind: file - spec: - file: tests/APM_Agents_shared/gherkin-specs/azure_functions_metadata.feature - forcecreate: true - otel_bridge.feature: - name: otel_bridge.feature - scmid: default - sourceid: otel_bridge.feature - kind: file - spec: - file: tests/APM_Agents_shared/gherkin-specs/otel_bridge.feature - forcecreate: true - outcome.feature: - name: outcome.feature - scmid: default - sourceid: outcome.feature - kind: file - spec: - file: tests/APM_Agents_shared/gherkin-specs/outcome.feature - forcecreate: true - user_agent.feature: - name: user_agent.feature - scmid: default - sourceid: user_agent.feature - kind: file + sourceid: sha + kind: shell spec: - file: tests/APM_Agents_shared/gherkin-specs/user_agent.feature - forcecreate: true + command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/gherkin-specs.tgz && git --no-pager diff # required to ignore the sourceid being appended' + workdir: "{{ .apm_agent.gherkin_specs_path }}" diff --git a/.ci/updatecli/updatecli.d/update-json-specs.yml b/.ci/updatecli/updatecli.d/update-json-specs.yml index 7618f3301..5a88ff28d 100644 --- a/.ci/updatecli/updatecli.d/update-json-specs.yml +++ b/.ci/updatecli/updatecli.d/update-json-specs.yml @@ -1,6 +1,5 @@ name: update-json-specs pipelineid: update-json-specs -title: synchronize json specs scms: default: @@ -8,17 +7,27 @@ scms: spec: user: '{{ requiredEnv "GIT_USER" }}' email: '{{ requiredEnv "GIT_EMAIL" }}' - owner: elastic - repository: apm-agent-php + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" token: '{{ requiredEnv "GITHUB_TOKEN" }}' username: '{{ requiredEnv "GIT_USER" }}' - branch: main + branch: "{{ .github.branch }}" + apm: + kind: github + spec: + user: '{{ requiredEnv "GIT_USER" }}' + email: '{{ requiredEnv "GIT_EMAIL" }}' + owner: "{{ .github.owner }}" + repository: "{{ .github.apm_repository }}" + token: '{{ requiredEnv "GITHUB_TOKEN" }}' + username: '{{ requiredEnv "GIT_USER" }}' + branch: "{{ .github.branch }}" sources: sha: kind: file spec: - file: 'https://github.com/elastic/apm/commit/main.patch' + file: 'https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ .github.branch }}.patch' matchpattern: "^From\\s([0-9a-f]{40})\\s" transformers: - findsubmatch: @@ -28,43 +37,26 @@ sources: dependson: - sha spec: - command: gh api /repos/elastic/apm/commits/{{ source "sha" }}/pulls --jq '.[].html_url' + command: gh api /repos/{{ .github.owner }}/{{ .github.apm_repository }}/commits/{{ source "sha" }}/pulls --jq '.[].html_url' environments: - name: GITHUB_TOKEN - name: PATH - container_metadata_discovery.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/json-specs/container_metadata_discovery.json - service_resource_inference.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/json-specs/service_resource_inference.json - span_types.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/json-specs/span_types.json - sql_signature_examples.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/json-specs/sql_signature_examples.json - sql_token_examples.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/json-specs/sql_token_examples.json - w3c_distributed_tracing.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/json-specs/w3c_distributed_tracing.json - wildcard_matcher_tests.json: - kind: file + agents-json-specs-tarball: + kind: shell + scmid: apm + dependson: + - sha spec: - file: https://raw.githubusercontent.com/elastic/apm/main/tests/agents/json-specs/wildcard_matcher_tests.json + command: tar cvzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz . + environments: + - name: PATH + workdir: "{{ .specs.apm_json_path }}" + actions: pr: kind: "github/pullrequest" scmid: default - title: '[Automation] Update JSON specs' + name: '[Automation] Update JSON specs' spec: automerge: false draft: false @@ -73,58 +65,18 @@ actions: description: |- ### What APM agent specs automatic sync + ### Why *Changeset* - * https://github.com/elastic/apm/commit/{{ source "sha" }} * {{ source "pull_request" }} + * https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ source "sha" }} targets: - container_metadata_discovery.json: - name: container_metadata_discovery.json - scmid: default - sourceid: container_metadata_discovery.json - kind: file - spec: - file: tests/APM_Agents_shared/json-specs/container_metadata_discovery.json - service_resource_inference.json: - name: service_resource_inference.json - scmid: default - sourceid: service_resource_inference.json - kind: file - spec: - file: tests/APM_Agents_shared/json-specs/service_resource_inference.json - span_types.json: - name: span_types.json - scmid: default - sourceid: span_types.json - kind: file - spec: - file: tests/APM_Agents_shared/json-specs/span_types.json - sql_signature_examples.json: - name: sql_signature_examples.json + agent-json-specs: + name: APM agent json specs {{ source "sha" }} scmid: default - sourceid: sql_signature_examples.json - kind: file - spec: - file: tests/APM_Agents_shared/json-specs/sql_signature_examples.json - sql_token_examples.json: - name: sql_token_examples.json - scmid: default - sourceid: sql_token_examples.json - kind: file - spec: - file: tests/APM_Agents_shared/json-specs/sql_token_examples.json - w3c_distributed_tracing.json: - name: w3c_distributed_tracing.json - scmid: default - sourceid: w3c_distributed_tracing.json - kind: file - spec: - file: tests/APM_Agents_shared/json-specs/w3c_distributed_tracing.json - wildcard_matcher_tests.json: - name: wildcard_matcher_tests.json - scmid: default - sourceid: wildcard_matcher_tests.json - kind: file + sourceid: sha + kind: shell spec: - file: tests/APM_Agents_shared/json-specs/wildcard_matcher_tests.json + command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz && git --no-pager diff # required to ignore the sourceid being appended' + workdir: "{{ .apm_agent.json_specs_path }}" diff --git a/.ci/updatecli/updatecli.d/update-specs.yml b/.ci/updatecli/updatecli.d/update-specs.yml index 3e264d3f8..67c0eab5e 100644 --- a/.ci/updatecli/updatecli.d/update-specs.yml +++ b/.ci/updatecli/updatecli.d/update-specs.yml @@ -1,6 +1,5 @@ name: update-specs - -title: synchronize schema specs +pipelineid: update-schema-specs scms: default: @@ -8,17 +7,28 @@ scms: spec: user: '{{ requiredEnv "GIT_USER" }}' email: '{{ requiredEnv "GIT_EMAIL" }}' - owner: elastic - repository: apm-agent-php + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: '{{ requiredEnv "GITHUB_TOKEN" }}' + username: '{{ requiredEnv "GIT_USER" }}' + branch: "{{ .github.branch }}" + + apm-data: + kind: github + spec: + user: '{{ requiredEnv "GIT_USER" }}' + email: '{{ requiredEnv "GIT_EMAIL" }}' + owner: "{{ .github.owner }}" + repository: "{{ .github.apm_data_repository }}" token: '{{ requiredEnv "GITHUB_TOKEN" }}' username: '{{ requiredEnv "GIT_USER" }}' - branch: main + branch: "{{ .github.branch }}" sources: sha: kind: file spec: - file: 'https://github.com/elastic/apm-data/commit/main.patch' + file: 'https://github.com/{{ .github.owner }}/{{ .github.apm_data_repository }}/commit/{{ .github.branch }}.patch' matchpattern: "^From\\s([0-9a-f]{40})\\s" transformers: - findsubmatch: @@ -28,36 +38,27 @@ sources: dependson: - sha spec: - command: gh api /repos/elastic/apm-data/commits/{{ source "sha" }}/pulls --jq '.[].html_url' + command: gh api /repos/{{ .github.owner }}/{{ .github.apm_data_repository }}/commits/{{ source "sha" }}/pulls --jq '.[].html_url' environments: - name: GITHUB_TOKEN - name: PATH - error.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/error.json - metadata.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/metadata.json - metricset.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/metricset.json - span.json: - kind: file - spec: - file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/span.json - transaction.json: - kind: file + agent-specs-tarball: + kind: shell + scmid: apm-data + dependson: + - sha spec: - file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/transaction.json + command: tar cvzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-schema.tgz . + environments: + - name: PATH + workdir: "{{ .specs.apm_data_path }}" actions: pr: kind: "github/pullrequest" scmid: default sourceid: sha + name: '[Automation] Update JSON schema specs' spec: automerge: false draft: false @@ -65,50 +66,19 @@ actions: - "automation" description: |- ### What - APM agent json schema automatic sync + APM agent json server schema automatic sync + ### Why *Changeset* - * https://github.com/elastic/apm-data/commit/{{ source "sha" }} * {{ source "pull_request" }} + * https://github.com/{{ .github.owner }}/{{ .github.apm_data_repository }}/commit/{{ source "sha" }} targets: - error.json: - name: error.json - scmid: default - sourceid: error.json - kind: file - spec: - file: tests/APM_Server_intake_API_schema/latest_used/error.json - forcecreate: true - metadata.json: - name: metadata.json - scmid: default - sourceid: metadata.json - kind: file - spec: - file: tests/APM_Server_intake_API_schema/latest_used/metadata.json - forcecreate: true - metricset.json: - name: metricset.json + agent-json-schema: + name: APM agent json server schema {{ source "sha" }} scmid: default - sourceid: metricset.json - kind: file - spec: - file: tests/APM_Server_intake_API_schema/latest_used/metricset.json - forcecreate: true - span.json: - name: span.json - scmid: default - sourceid: span.json - kind: file - spec: - file: tests/APM_Server_intake_API_schema/latest_used/span.json - forcecreate: true - transaction.json: - name: transaction.json - scmid: default - sourceid: transaction.json - kind: file + sourceid: sha + kind: shell spec: - file: tests/APM_Server_intake_API_schema/latest_used/transaction.json - forcecreate: true + command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-schema.tgz && git --no-pager diff # required to ignore the sourceid being appended' + workdir: "{{ .apm_agent.server_schema_specs_path }}" diff --git a/.ci/updatecli/values.yml b/.ci/updatecli/values.yml new file mode 100644 index 000000000..e4e37b1a0 --- /dev/null +++ b/.ci/updatecli/values.yml @@ -0,0 +1,14 @@ +github: + owner: "elastic" + repository: "apm-agent-php" + apm_repository: "apm" + apm_data_repository: "apm-data" + branch: "main" +specs: + apm_data_path: "input/elasticapm/docs/spec/v2" + apm_json_path: "tests/agents/json-specs" + apm_gherkin_path: "tests/agents/gherkin-specs" +apm_agent: + gherkin_specs_path: "tests/APM_Agents_shared/gherkin-specs" + json_specs_path: "tests/APM_Agents_shared/json-specs" + server_schema_specs_path: "tests/APM_Server_intake_API_schema/latest_used" \ No newline at end of file From d04f09814ac61c7e9adbc0318962ea49001a3ac7 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 16 Jan 2024 21:31:57 +0100 Subject: [PATCH 3/5] use the title for the PR --- .ci/updatecli/updatecli.d/update-gherkin-specs.yml | 2 +- .ci/updatecli/updatecli.d/update-json-specs.yml | 2 +- .ci/updatecli/updatecli.d/update-specs.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/updatecli/updatecli.d/update-gherkin-specs.yml b/.ci/updatecli/updatecli.d/update-gherkin-specs.yml index 872596bce..dd5be9826 100644 --- a/.ci/updatecli/updatecli.d/update-gherkin-specs.yml +++ b/.ci/updatecli/updatecli.d/update-gherkin-specs.yml @@ -56,7 +56,6 @@ actions: pr: kind: "github/pullrequest" scmid: default - name: '[Automation] Update Gherkin specs' spec: automerge: false draft: false @@ -70,6 +69,7 @@ actions: *Changeset* * {{ source "pull_request" }} * https://github.com/elastic/apm/commit/{{ source "sha" }} + title: '[Automation] Update Gherkin specs' targets: agent-gherkin-specs: diff --git a/.ci/updatecli/updatecli.d/update-json-specs.yml b/.ci/updatecli/updatecli.d/update-json-specs.yml index 5a88ff28d..148241d90 100644 --- a/.ci/updatecli/updatecli.d/update-json-specs.yml +++ b/.ci/updatecli/updatecli.d/update-json-specs.yml @@ -56,7 +56,6 @@ actions: pr: kind: "github/pullrequest" scmid: default - name: '[Automation] Update JSON specs' spec: automerge: false draft: false @@ -70,6 +69,7 @@ actions: *Changeset* * {{ source "pull_request" }} * https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ source "sha" }} + title: '[Automation] Update JSON specs' targets: agent-json-specs: diff --git a/.ci/updatecli/updatecli.d/update-specs.yml b/.ci/updatecli/updatecli.d/update-specs.yml index 67c0eab5e..3ab3c7433 100644 --- a/.ci/updatecli/updatecli.d/update-specs.yml +++ b/.ci/updatecli/updatecli.d/update-specs.yml @@ -58,7 +58,6 @@ actions: kind: "github/pullrequest" scmid: default sourceid: sha - name: '[Automation] Update JSON schema specs' spec: automerge: false draft: false @@ -72,6 +71,7 @@ actions: *Changeset* * {{ source "pull_request" }} * https://github.com/{{ .github.owner }}/{{ .github.apm_data_repository }}/commit/{{ source "sha" }} + title: '[Automation] Update JSON schema specs' targets: agent-json-schema: From 23d215f01031a09fe94b3338238bd397c3c49108 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 23 Jan 2024 10:52:42 +0100 Subject: [PATCH 4/5] use disablesourceinput --- .ci/updatecli/updatecli.d/update-gherkin-specs.yml | 4 ++-- .ci/updatecli/updatecli.d/update-json-specs.yml | 4 ++-- .ci/updatecli/updatecli.d/update-specs.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.ci/updatecli/updatecli.d/update-gherkin-specs.yml b/.ci/updatecli/updatecli.d/update-gherkin-specs.yml index dd5be9826..4515026c3 100644 --- a/.ci/updatecli/updatecli.d/update-gherkin-specs.yml +++ b/.ci/updatecli/updatecli.d/update-gherkin-specs.yml @@ -75,8 +75,8 @@ targets: agent-gherkin-specs: name: APM agent gherkin specs {{ source "sha" }} scmid: default - sourceid: sha + disablesourceinput: true kind: shell spec: - command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/gherkin-specs.tgz && git --no-pager diff # required to ignore the sourceid being appended' + command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/gherkin-specs.tgz && git --no-pager diff' workdir: "{{ .apm_agent.gherkin_specs_path }}" diff --git a/.ci/updatecli/updatecli.d/update-json-specs.yml b/.ci/updatecli/updatecli.d/update-json-specs.yml index 148241d90..0856990f9 100644 --- a/.ci/updatecli/updatecli.d/update-json-specs.yml +++ b/.ci/updatecli/updatecli.d/update-json-specs.yml @@ -75,8 +75,8 @@ targets: agent-json-specs: name: APM agent json specs {{ source "sha" }} scmid: default - sourceid: sha + disablesourceinput: true kind: shell spec: - command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz && git --no-pager diff # required to ignore the sourceid being appended' + command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz && git --no-pager diff' workdir: "{{ .apm_agent.json_specs_path }}" diff --git a/.ci/updatecli/updatecli.d/update-specs.yml b/.ci/updatecli/updatecli.d/update-specs.yml index 3ab3c7433..be451a048 100644 --- a/.ci/updatecli/updatecli.d/update-specs.yml +++ b/.ci/updatecli/updatecli.d/update-specs.yml @@ -77,8 +77,8 @@ targets: agent-json-schema: name: APM agent json server schema {{ source "sha" }} scmid: default - sourceid: sha + disablesourceinput: true kind: shell spec: - command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-schema.tgz && git --no-pager diff # required to ignore the sourceid being appended' + command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-schema.tgz && git --no-pager diff' workdir: "{{ .apm_agent.server_schema_specs_path }}" From a64e198022822f7fa36d72d3e0c58ccd0ba67fbe Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 25 Jan 2024 09:59:39 +0100 Subject: [PATCH 5/5] Update .github/workflows/updatecli.yml --- .github/workflows/updatecli.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/updatecli.yml b/.github/workflows/updatecli.yml index 6d354503a..69e79893d 100644 --- a/.github/workflows/updatecli.yml +++ b/.github/workflows/updatecli.yml @@ -19,6 +19,7 @@ jobs: vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} pipeline: .ci/updatecli/updatecli.d + values: .ci/updatecli/values.yml - if: failure() uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current with: