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

DT-948: Improve ACSF detection logic. #3896

Merged
merged 2 commits into from
Oct 29, 2019
Merged

Conversation

danepowell
Copy link
Contributor

@danepowell danepowell commented Oct 25, 2019

Changes proposed

  • Fix ACSF detection logic in unorthodox environments / realms (other than dev/test/live)

Steps to replicate the issue

  1. Deploy to an ACSF environment named something like 01train1

Previous (bad) behavior, before applying PR

Observe a BLT exception.

Expected behavior, after applying PR and re-running test steps

No exception, BLT correctly detects the presence of ACSF hosting

Additional details

The ACSF module itself just checks for the existence of the sites.json module, we should follow its lead (if that fails, BLT will be the least of the problem). Doing an additional regex is overkill and fails in some environments.

We considered alternatives such as checking the AH_REALM env var, but this is also not consistent between subscriptions (usually enterprise-g1, but sometimes other values). And again... let's just follow in the ACSF module's footsteps.

@danepowell danepowell changed the title Improve ACSF detection logic. DT-948: Improve ACSF detection logic. Oct 28, 2019
Copy link

@adrianthedev adrianthedev 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

@danepowell danepowell added 11.x Affects or applies to 11.x Backport needed PRs needing to be backported Bug Something isn't working labels Oct 29, 2019
@danepowell danepowell merged commit b68328c into acquia:11.x Oct 29, 2019
danepowell added a commit that referenced this pull request Oct 29, 2019
* Improve ACSF detection logic.

* Removed unused import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11.x Affects or applies to 11.x Backport needed PRs needing to be backported Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants