tektoncd / tektoncd/cli

Improve golden file generation functionality

Open
#1,165 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/testing good first issue kind/cleanup
Dominant language
Go
Stars
461
Forks
277
Avg merge
16h 48m
Merged PRs (30d)
95

Description

Right now when we hit make generated it generates golden files for test scenarios and also updates the already existent files for test scenarios. But if there is some name change in the test name, it generates a new golden file, and the old one becomes redundant and remains there forever.

This function should be improved to remove all golden files and generate new ones so that we don't end with redundant golden files.

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 inspecting the make generated target and the golden-file generation entry point it invokes. Determine how existing scenario files are handled, then verify the generation flow with the relevant test scenarios. Done means stale golden files are removed and the current scenarios produce only the needed files.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, cli, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.