mozilla-releng / mozilla-releng/scriptworker

Update CoT test data with modern task definitions

Open
#517 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5
Forks
39
Avg merge
4h 18m
Merged PRs (30d)
6

Description

The test data being used was generated a long time ago (circa cotv2 and cotv4). To help ensure the tests are relevant we should update the definitions with those from recent tasks.

I'm no expert in this regard, but I think the approach I would take is:

  1. Create tests/data/cotv7 (and add associated constants / helper methods to test_cot_verify.py)
  2. Save modern task definitions there (e.g, decision task, actions.yml, etc)
  3. Attempt to convert as many tests over to this new data as possible
  4. Remove cotv2 and cotv4 dirs. It might be fine for some tests to continue using the older data, but having a single data dir would simplify things...
  5. Verify no loss in code coverage.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reading test_cot_verify.py and the existing tests/data/cotv2 and tests/data/cotv4 directories to understand their constants, helpers, and task definitions. Add tests/data/cotv7 with modern definitions such as the decision task and actions.yml, migrate tests where possible, then remove obsolete data only when coverage remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.