…ache key (#6282)
### **User description**
Github Actions:
- GH go build cache key now has golang_cross to prevent conflicts
between 1.21/1.22 caches
Opentelemetry:
- Opentelemetry now all in /ci/tests/opentelemetry (Taskfile, tracetest
moved out of .taskfiles)
- Updates to opentelemetry collector from 0.80.0 to 0.100.0
- Updates tracetest to 1.0.0
- Cleans up configs and docker compose environment
If you have tracetest installed, delete it before running `task
opentelemetry`.
___
### **PR Type**
enhancement, tests
___
### **Description**
- Updated GitHub Actions to use a more specific cache key by including
`golang_cross` version to prevent conflicts.
- Removed old opentelemetry task configuration and introduced a new
structured Taskfile in a different directory for enhanced management.
- Updated Docker build commands in Taskfile to use the latest Go version
and corresponding golang-cross image.
- Introduced a new Taskfile for opentelemetry with comprehensive
commands for setting up and running e2e tests.
- Updated the OpenTelemetry collector configuration to include new
settings and simplified the configuration structure.
- Enhanced Tyk environment configurations by adding debug log level and
specifying the storage host.
- Overhauled Docker Compose configurations, updating service images, and
removing unused network configurations.
- Updated the Tracetest Taskfile to support new versioning and
installation procedures.
___
### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Configuration changes
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>release.yml</strong><dd><code>Update GitHub Actions
Cache Key Configuration</code>
</dd></summary>
<hr>
.github/workflows/release.yml
<li>Updated the cache key and restore-keys in GitHub Actions to include
<br><code>golang_cross</code> version, enhancing specificity and
preventing conflicts <br>between different Go versions.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34">+2/-2</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>opentelemetry.yml</strong><dd><code>Remove
Opentelemetry Task Configuration</code>
</dd></summary>
<hr>
.taskfiles/opentelemetry.yml
- Removed the entire opentelemetry task configuration.
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-3a4b761dd20bd83804466e1295ad58db13b87b5e35e6120efc59c2b7bfaa27e1">+0/-49</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>Taskfile.yml</strong><dd><code>Update Taskfile with New
Opentelemetry Path and Go Version</code></dd></summary>
<hr>
Taskfile.yml
<li>Updated the inclusion path for opentelemetry tasks to a new
directory.<br> <li> Updated Docker build commands to use Go version 1.22
and corresponding <br>golang-cross image.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-cd2d359855d0301ce190f1ec3b4c572ea690c83747f6df61c9340720e3d2425e">+5/-3</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>collector.config.yml</strong><dd><code>Update
OpenTelemetry Collector Configuration</code>
</dd></summary>
<hr>
ci/tests/tracing/configs/otelcollector/collector.config.yml
<li>Updated the OpenTelemetry collector configuration, including new
<br>logging exporter settings and simplified structure.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-7ed5aea20a5cf1666f7de8ed60b105467e4a6be7a137d5c145e58f772803b690">+22/-20</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>tyk.env</strong><dd><code>Enhance Tyk Environment
Configuration</code>
</dd></summary>
<hr>
ci/tests/tracing/configs/tyk.env
<li>Added debug log level and storage host configuration to Tyk
<br>environment settings.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-69098dd1c6ed48bb914d7d4534673f9f42d146b7ecf37fda7c494886215bea1c">+3/-1</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>docker-compose.yml</strong><dd><code>Update Docker
Compose Configuration for Tracing Tests</code>
</dd></summary>
<hr>
ci/tests/tracing/docker-compose.yml
<li>Updated various service configurations, including new image versions
<br>and simplified service dependencies.<br> <li> Removed unused network
configurations.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-ca0b13836790f0db90a490b5000a738787f3d5d839313d456ec9f94b33dac7ee">+31/-38</a>
</td>
</tr>
</table></td></tr><tr><td><strong>Enhancement
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>Taskfile.yml</strong><dd><code>Introduce New
Opentelemetry Taskfile for E2E Tests</code>
</dd></summary>
<hr>
ci/tests/tracing/Taskfile.yml
<li>Added a new Taskfile for opentelemetry with updated commands and
<br>structure for running e2e tests.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-d7d2dd36087d885290fa602e3e810f648e36c0ebf71becf09fcd68e73371ac96">+55/-0</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>Taskfile.yml</strong><dd><code>Update Tracetest
Taskfile with New Installation Tasks</code>
</dd></summary>
<hr>
ci/tests/tracing/tracetest/Taskfile.yml
<li>Updated Tracetest Taskfile to include version variable and new
<br>installation tasks.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6282/files#diff-1ea785f38e54f75865fed6e19e96dff08ba102c80a3e438ae2e7d54b8e435af2">+12/-5</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
___
> 💡 **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools
and their descriptions
---------
Co-authored-by: Tit Petric <[email protected]>
User description
Github Actions:
Opentelemetry:
If you have tracetest installed, delete it before running
task opentelemetry.PR Type
enhancement, tests
Description
golang_crossversion to prevent conflicts.Changes walkthrough 📝
release.yml
Update GitHub Actions Cache Key Configuration.github/workflows/release.yml
golang_crossversion, enhancing specificity and preventing conflictsbetween different Go versions.
opentelemetry.yml
Remove Opentelemetry Task Configuration.taskfiles/opentelemetry.yml
Taskfile.yml
Update Taskfile with New Opentelemetry Path and Go VersionTaskfile.yml
golang-cross image.
collector.config.yml
Update OpenTelemetry Collector Configurationci/tests/tracing/configs/otelcollector/collector.config.yml
logging exporter settings and simplified structure.
tyk.env
Enhance Tyk Environment Configurationci/tests/tracing/configs/tyk.env
environment settings.
docker-compose.yml
Update Docker Compose Configuration for Tracing Testsci/tests/tracing/docker-compose.yml
and simplified service dependencies.
Taskfile.yml
Introduce New Opentelemetry Taskfile for E2E Testsci/tests/tracing/Taskfile.yml
structure for running e2e tests.
Taskfile.yml
Update Tracetest Taskfile with New Installation Tasksci/tests/tracing/tracetest/Taskfile.yml
installation tasks.