Skip to content

Share one after_script for Docker SSI, AWS SSI, and K8s jobs - #8198

Draft
robertomonteromiguel wants to merge 3 commits into
mainfrom
robertomonteromiguel/ssi_gitlab_after_script_simply
Draft

robertomonteromiguel wants to merge 3 commits into
mainfrom
robertomonteromiguel/ssi_gitlab_after_script_simply

Conversation

@robertomonteromiguel

Copy link
Copy Markdown
Collaborator

Summary

  • Docker SSI, AWS SSI, and K8s lib injection jobs now call gitlab_finalize_job.sh instead of keeping three separate after_script blocks.
  • The script tags the job, collects logs, publishes reports, and prints the job log. Each profile lists the steps it runs.
  • When a tracer repository launches the pipeline, SYSTEM_TESTS_DIR points to that repository's system-tests checkout.

Test plan

  • Run ./run.sh TEST_THE_TEST tests/test_the_test/test_gitlab_finalize_job.py.
  • Run one Docker SSI job, one AWS SSI job, and one K8s lib injection job in GitLab.
  • Run one tracer pipeline with SYSTEM_TESTS_REF set to this branch.

Made with Cursor

…jection.

The three jobs repeated the same cleanup in bash. One script keeps that cleanup in one place and still finds the system-tests checkout when a tracer launches the pipeline.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

tests/test_the_test/test_gitlab_finalize_job.py                         @DataDog/system-tests-reviewers
utils/scripts/gitlab_finalize_job.py                                    @DataDog/system-tests-core
utils/scripts/gitlab_finalize_job.sh                                    @DataDog/system-tests-core
.gitlab/ssi_gitlab-ci.yml                                               @DataDog/system-tests-core
utils/scripts/ci_orchestrators/gitlab_exporter.py                       @DataDog/system-tests-core

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Tests

🎉 All green!

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: fc29f2e | Docs | View more details | Give us feedback!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant