nspcc-dev / nspcc-dev/neofs-dev-env

Use stable approach to seek YAML fields in `bin/update_hosts.sh` script

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

Nobody has claimed this yet.

enhancement I4 S2 U4
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.