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

Fix cid based oifs #28

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Fix cid based oifs #28

merged 3 commits into from
Jul 19, 2024

Conversation

jonsmock
Copy link
Contributor

@jonsmock jonsmock commented Jul 18, 2024

This PR re-introduces the container id key, which was removed during a fix/refactoring before the 2.4.0 release. This id is used when naming outer link devices if the service+device name is too long, so we hit a missing .substring error for null when service names are long. conlink examples use terse names, so this case is never hit in GHA.

Also clean up Dockerfile to comply with the buildx checks, and bump to 2.5.1.

Let's discuss (in comments or offline) how we want to approach testing specific cases that may be more of a distraction than benefit in human-targeted examples/docs. For instance, I could trigger this in GHA by renaming the r0 service in example 1 to router0, but that feels awkward and perhaps less standard/clear. I would also like to test the link merging functionality. Do we want an example that is intended to be "random knowedge for advanced users" where we can put a long list of random cases to test, or do we want to start a new set of tests specifically for integration testing?

'link-outer-dev normally creates a friendly name for the outer link
device using a combination of service and device name; however, if that
string is look long, the fallback strategy is to use a portion of the
container id. Unfortunately the id key was removed during a refactoring,
which introduced the regression.
@jonsmock jonsmock requested review from kanaka and abrooks July 18, 2024 16:56
@jonsmock jonsmock merged commit f5f3d74 into master Jul 19, 2024
2 checks passed
@jonsmock jonsmock deleted the fix-cid-based-oifs branch July 19, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant