nspcc-dev / nspcc-dev/neofs-dev-env
Use stable approach to seek YAML fields in `bin/update_hosts.sh` script
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 10
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
* originally posted in https://github.com/nspcc-dev/neofs-dev-env/pull/282#discussion_r1431840847
currently, script uses grep to seek YAML fields. Fields may have the same names in different YAML sections, so current approach may be unstable. Another approach dealing with full path should be used instead
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with bin/update_hosts.sh and inspect how grep currently locates YAML fields. Replace the unstable field lookup with an approach that selects fields by their full YAML path, then verify that fields with repeated names in different sections are resolved correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100