manticoresoftware / manticoresoftware/clt

Dynamic variables for inputs

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

Nobody has claimed this yet.

Dominant language
Svelte
Stars
8
Forks
3
Avg merge
2d 10h
Merged PRs (30d)
2

Description

From: https://gitlab.com/manticoresearch/clt/-/issues/5

While doing a scenario to test mysqldump with combined tasks no mcl, mcl only, mcl id with json, MVA, text fields, we found that it's a good idea to have the possibility to support dynamic variables in inputs. So we can use one similar test, for example, to run it several times just by changing the name of the dataset or something else that may be useful to reduce the amount of copy-paste of tests and improve maintenance.

We should think about the best way to use it, but probably the most straightforward idea to implement is just adding the possibility to export env variables into a shell run by Rust and use it in rec files. Still, we also need to modify comparing mechanism in that case.

We should research the best way first before we implement it.

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.

Research direction

Start by reviewing how rec files are parsed, how Rust launches the shell, and how comparison currently works. Research and document a variable syntax and its behavior for repeated scenarios, including dataset names and other inputs. Done means the approach is agreed and its required comparison changes and test coverage are defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
cli, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.