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

Update CF_INSTANCE_PORT and CF_INSTANCE_ADDR tests so they pass regar… #1203

Merged

Conversation

geofffranks
Copy link
Contributor

Are you submitting this PR against the develop branch?

yes

What is this change about?

Adjusts env var tests related to CF_INSTANCE_PORT and CF_INSTANCE_ADDR to pass regardless of how unproxied ports are configured for app containers.

Please provide contextual information.

Allows cloudfoundry/cf-deployment#1195 to no longer need changes to CATs configs

What version of cf-deployment have you run this cf-acceptance-test change against?

Latest.

Please check all that apply for this PR:

  • introduces a new test --- Are you sure everyone should be running this test?
  • changes an existing test
  • requires an update to a CATs integration-config

Did you update the README as appropriate for this change?

  • YES
  • N/A

If you are introducing a new acceptance test, what is your rationale for including it CATs rather than your own acceptance test suite?

N/A

How many more (or fewer) seconds of runtime will this change introduce to CATs?

no change

What is the level of urgency for publishing this change?

  • [] Urgent - unblocks current or future work
  • Slightly Less than Urgent

Tag your pair, your PM, and/or team!

It's helpful to tag a few other folks on your team or your team alias in case we need to follow up later.

Copy link
Contributor

@jochenehret jochenehret left a comment

Choose a reason for hiding this comment

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

Tested on cf-deployment v43.2.0, works. Also tested with PR cloudfoundry/cf-deployment#1195 merged, works!

@jochenehret
Copy link
Contributor

I'll wait one more day to give the other ARD WG members a chance for review, then I'll merge the PR.

Copy link
Member

@davewalter davewalter left a comment

Choose a reason for hiding this comment

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

Looks good.

@ctlong
Copy link
Member

ctlong commented Sep 12, 2024

Hmmmm are we okay with losing the present/not present check on the env vars?

Currently, if require_proxied_app_traffic is true then we expect CF_INSTANCE_ADDR and CF_INSTANCE_PORT to be set. If false then we expect CF_INSTANCE_ADDR and CF_INSTANCE_PORT to not be set. These changes result in the test ignoring them if they're not set, regardless of other circumstances.

I guess I would have expected that with the CF-D changes we would actually just want to switch require_proxied_app_traffic to default to true, right?

@davewalter
Copy link
Member

Fair point.

@geofffranks
Copy link
Contributor Author

geofffranks commented Sep 13, 2024

We can switch the default value, but then all the pipelines using older cd-d with the latest CATs will require manual intervention. If we don't, all the newer cf-d with any copy of CATs will require manual intervention.

The reasoning for removing these checks was that they're very diego specific, and already tested in unit + integration tests by diego's pipelines. When digging back through the history of when they were added, it seemed like they were added to catch any specific problems that could trip up apps, but instead as satisfying a "this feature needs acceptance tests" checkbox.

We discussed internally, and we were OK with increased risk by removing these tests as a trade off to making everyone reconfigure CATs to have it continue to work.

But I'm happy to change this however y'all want. 😄

@ctlong ctlong merged commit 8eb69a4 into cloudfoundry:develop Sep 24, 2024
3 checks passed
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.

4 participants