ansible / validated-content-discussion

A place for review of validated content candidates and general discussion around validated content.
GNU General Public License v3.0
2 stars 4 forks source link

candidate: network.restore #18

Closed rohitthakur2590 closed 1 month ago

rohitthakur2590 commented 1 year ago

Candidate Name

network.restore

Link to Github Repo

https://github.com/redhat-cop/network.restore

Review Due By

CHECKLIST

Business Checks:

Content Viability

Content Duplication

Technical Checks:

Content Conformity

Content Compliance

Content Testing/Validation

alisonlhart commented 1 year ago

Version needs to be changed to a semver prod version: 1.0.0+

alisonlhart commented 11 months ago

@arnav3000

alisonlhart commented 11 months ago

@rohitthakur2590 Initial pass of items that need resolution (subject to change)

arnav3000 commented 11 months ago
alisonlhart commented 5 months ago

@rohitthakur2590 Checking in on this issue! Any updates on the final checklist items ?

alisonlhart commented 4 months ago

This is passing all checklist items! Posting a message in the cop Slack channel for immediate sign-off.

djdanielsson commented 4 months ago

so first off it looks like this role just does one thing which makes me wonder if it is worth creating a whole collection over this instead of putting it inside an already created collection. next the layout of the role does not match the standard layout of a role. another issue is the name of the role itself called run which does not explain what it does, but this goes back to the issue of it only having a single purpose. there might be more but I stopped looking after seeing these issues

ericzolf commented 4 months ago

The use case seems sound but I'm struggling with the structure of the one role:

  1. one single run role with methods which seem to be actually different actions, would probably be better split into multiple roles
  2. the includes directory next to the tasks one is very uncommon, and I don't grasp the added value compared to the more standard approach of having everything under tasks
  3. the task name are not prefixed by the name of the task file (which helps debugging)

So, basically the same as @djdanielsson but with different suggestions (and wording).

I also noticed that the inventory in the "Testing" section is probably wrong, the first line should probably read [network_hosts:children] as it seems to contain other groups.

rohitthakur2590 commented 4 months ago

@djdanielsson Thanks for your insightful feedback. In addition to the platform-agnostic restore operation capability, our network.backup and network.restore collections also incorporate SCM support, currently including Github/tagging, with plans for future enhancements such as diff-based restore and support for GitLab and S3.

The decision to maintain separate network.backup and network.restore collections stemmed from our aim for better organization and scalability. By segregating these functionalities, we can ensure that as the network backup and restore processes evolve and become more intricate, each collection can independently scale and adapt to changes.

@ericzolf Regarding the role of actions, it aligns with the approach/pattern we've adopted for networking-validated content. Your point about organizing and naming task files is well taken, and we'll definitely consider improvements in an upcoming release.

rohitthakur2590 commented 3 months ago

cc @cidrblock any thoughts on this ?

ericzolf commented 3 months ago

I still don't grok the need to split backup from restore, where I'd expect that they're tightly related and need to stay aligned to work properly. Collections are generally aligned along technologies, not actions, that's what roles are meant for. And I can't imagine why/how the two would need different lifecycles, especially as they're maintained by the same persons. Validated content is aimed at providing content for our customers to reuse in their automation, we can't swallow all our good practices or we become inconsistent.

rohitthakur2590 commented 1 month ago

Closing this as we have consolidated the backup and restore with the updated file structures.