Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SlotPath topology config validation. #285

Closed
wants to merge 1 commit into from

Conversation

kimdo8736
Copy link

Summary:
Why

  1. This is pre-req for other services to validate "PM generated data". e.g platform_manager::ConfigValidator().isValidSlotPath(...)
  2. Beefing up SlotPath validation. See T205471819 more details.

What

  1. Dropped ConfigValidator call in Utils::parseDevicePath because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
  2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
  3. Added topological validation on slot path.

Next

  1. DeviceName validation. basically does device definition exist in the slot path?
  2. Suppose VersionedPmUnit...

Differential Revision: D64798493

Summary:
__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Differential Revision: D64798493
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64798493

@kimdo8736 kimdo8736 closed this Oct 29, 2024
kimdo8736 pushed a commit to kimdo8736/fboss that referenced this pull request Oct 29, 2024
Summary:

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Differential Revision: D64798493
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64798493

kimdo8736 pushed a commit to kimdo8736/fboss that referenced this pull request Nov 4, 2024
Summary:

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64798493

facebook-github-bot pushed a commit to facebook/mvfst that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/wangle that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/fbthrift that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/watchman that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

Pull Request resolved: #285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebookexperimental/moxygen that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebookincubator/katran that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/folly that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebookexperimental/edencommon that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/proxygen that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/openr that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/fb303 that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebook/hhvm that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebookincubator/hsthrift that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
facebook-github-bot pushed a commit to facebookincubator/fizz that referenced this pull request Nov 5, 2024
Summary:
X-link: facebookincubator/zstrong#1036

X-link: facebook/fboss#285

__Why__
1. This is pre-req for other services to validate "PM generated data". e.g `platform_manager::ConfigValidator().isValidSlotPath(...)`
2. Beefing up SlotPath validation. See T205471819 more details.

__What__
1. Dropped ConfigValidator call in `Utils::parseDevicePath` because we can assume that config paths are valid. If ill-input is provided, unexpected behaviour.
2. Added additional regex for group capturing because it doesn't seem to work with a single regex for some reason...
3. Added topological validation on slot path.

__Next__
1. DeviceName validation. basically does device definition exist in the slot path?
2. Suppose VersionedPmUnit...

Reviewed By: somasun

Differential Revision: D64798493

fbshipit-source-id: 9ca1936bf81250bda1fc6b9d800221055b6b2f48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants