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

upcoming: [M3-8869] - Update types for NodeBalancer UDP support #11321

Merged

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Nov 25, 2024

Description 📝

  • Updates NodeBalancer related types and schemes to support UDP 🔌

Preview 📷

Note

No UI changes

How to test 🧪

  • Check types compared to the API spec (linked in the internal ticket M3-8869)
  • Check for breaking changes in our types

As an Author, I have considered 🤔

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@bnussman-akamai bnussman-akamai added the NodeBalancers Relating to NodeBalancers label Nov 25, 2024
@bnussman-akamai bnussman-akamai self-assigned this Nov 25, 2024
@bnussman-akamai bnussman-akamai marked this pull request as ready for review December 3, 2024 15:48
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner December 3, 2024 15:48
@bnussman-akamai bnussman-akamai requested review from dwiley-akamai and hana-akamai and removed request for a team December 3, 2024 15:48
Copy link

github-actions bot commented Dec 3, 2024

Coverage Report:
Base Coverage: 86.84%
Current Coverage: 86.84%

Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ✅
No regressions observed to existing flow ✅

re: mode and how it shouldn't be specified when creating a node for a UDP NodeBalancer -- should this be reflected in L54 of nodebalancers.schema.ts?

Comment on lines +210 to +230
const client_conn_throttle = number()
.min(
CONNECTION_THROTTLE.MIN,
`Client Connection Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.max(
CONNECTION_THROTTLE.MAX,
`Client Connection Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.typeError('Client Connection Throttle must be a number.');

const client_udp_sess_throttle = number()
.min(
CONNECTION_THROTTLE.MIN,
`UDP Session Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.max(
CONNECTION_THROTTLE.MAX,
`UDP Session Throttle must be between ${CONNECTION_THROTTLE.MIN} and ${CONNECTION_THROTTLE.MAX}.`
)
.typeError('UDP Session Throttle must be a number.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can put the error messages that are used twice in their own constants

@@ -116,7 +125,12 @@ export const createNodeBalancerConfigSchema = object({
then: (schema) =>
schema.required('SSL certificate is required when using HTTPS.'),
}),
stickiness: mixed().oneOf(['none', 'table', 'http_cookie']),
stickiness: string().when('protocol', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also check the following fields when the protocol is udp?

  • check_passive must be false or unset
  • proxy_protocol must be none or unset
  • The various SSL related fields like ssl_cert, ssl_key, cipher_suite_recommended should not be set
  • mode should not be specified when creating a node

@hana-akamai hana-akamai added Approved Multiple approvals and ready to merge! and removed Ready for Review labels Dec 4, 2024
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 466 passing tests on test run #12 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing466 Passing2 Skipped96m 58s

@bnussman-akamai bnussman-akamai merged commit 85d62d3 into linode:develop Dec 9, 2024
23 checks passed
Copy link

cypress bot commented Dec 9, 2024

Cloud Manager E2E    Run #6938

Run Properties:  status check failed Failed #6938  •  git commit 85d62d3469: upcoming: [M3-8869] - Update types for NodeBalancer UDP support (#11321)
Project Cloud Manager E2E
Branch Review develop
Run status status check failed Failed #6938
Run duration 28m 26s
Commit git commit 85d62d3469: upcoming: [M3-8869] - Update types for NodeBalancer UDP support (#11321)
Committer Banks Nussman
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 465
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/e2e/core/billing/smoke-billing-activity.spec.ts • 1 failed test

View Output Video

Test Artifacts
Billing Activity Feed > displays correct timezone for invoice and payment dates Screenshots Video
Flakiness  linodes/switch-linode-state.spec.ts • 1 flaky test

View Output Video

Test Artifacts
switch linode state > powers off a linode from landing page Screenshots Video
Flakiness  linodes/update-linode-labels.spec.ts • 1 flaky test

View Output Video

Test Artifacts
update linode label > updates a linode label from the "Settings" tab Screenshots Video
Flakiness  volumes/create-volume.smoke.spec.ts • 1 flaky test

View Output Video

Test Artifacts
volumes > does not allow creation of a volume with invalid pricing from volumes landing Screenshots Video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! NodeBalancers Relating to NodeBalancers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants