ooni / ooni/devops

Test the ecs-discovery.py script in the CI

Open
#188 0 comments 0 reactions 1 assignee View on GitHub

@LDiazN is already working on this.

Since Feb 18, 2025.

funder/otfcred2025
Dominant language
HCL
Stars
4
Forks
15
Avg merge
1h 50m
Merged PRs (30d)
4

Description

The ecs-discovery.py script introduced in https://github.com/ooni/devops/pull/186 allows ECS tasks discovery and it's called periodically with a cronjob in the monitoring host to collect tasks details (EC2 host with private IP, running port) that are used for file-based discovery of scrape targets in Prometheus.

This script is quite long and a bit complex, so it's a good idea to add some testing for it, see https://github.com/ooni/devops/pull/186#discussion_r1959487649

As a result, the CI should be able to check if this script is able to write the right json and that it has the right format for Prometheus

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.