Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger Datadog synthetic tests for an MFE pipeline on a lower environment #928

Open
5 tasks
jristau1984 opened this issue Feb 3, 2025 · 3 comments
Open
5 tasks
Assignees

Comments

@jristau1984
Copy link

jristau1984 commented Feb 3, 2025

  • Demonstrate triggering off of Git merge on new pipeline added to MFE pipeline group
  • Create repository config for MFE pipeline to pick up workstream's tubular work
  • Have pipeline synthetic tests triggered from GIT merge on MFE pipeline in a lower environment
  • Update tubular to run full set of intended tests
  • Have tubular work PR'ed
@jristau1984 jristau1984 converted this from a draft issue Feb 3, 2025
@jristau1984 jristau1984 moved this from Ready For Development to In Progress in Arch-BOM Feb 3, 2025
@bszabo
Copy link

bszabo commented Feb 4, 2025

Prior work was off of the test GoCD tool, located at https://test-gocd.tools.edx.org/go/pipelines#!/

The work leverages a new pipeline defined via a YAML file as a config repository. GoCD names the config repository "dd_tests" and its YAML file is located at [email protected]:edx/edx-gocd-synthetic-testing.git (dd-tests-fresh branch) "release_tests.gocd.yaml"

Documentation for interpreting the YAML file's contents is located here.

@bszabo
Copy link

bszabo commented Feb 4, 2025

Tubular enters the picture via the "tubular" material specified in the YAML file. This references the edx/tubular repo, and specifies that the repo is to be downloaded onto the "tubular" folder on the GoCD agent. Then, the specification for the job to be run on the pipeline lists a python file in this folder to run as the executuable; moreover, it lists that folder as the working directory.

In combination, the above steps serve to ensure that the job run off the pipleine is the intended Tubular script.

@bszabo
Copy link

bszabo commented Feb 4, 2025

In the previous phase of this project, I was running the pipeline, its stage, and the jobs within that stage, by manually triggering the pipeline. This means the work was divorced from any development environment stage, as it wasn't tied to any deployment activity on any such stage.

To tie a GoCD pipeline to a development environment, the pipeline needs a dependency on an upstream pipeline/stage. Need to investigate whether the dependency scope on the YAML file is restricted to pipelines and stages running on the test GoCD server. I ssupect it is. If so, need to figure out how to trigger a build on this server. (May need to create my own upstream pipeline, manually trigger than, and then have the target pipeline show proper dependency on the upstream pipeline).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants