Skip to content

Conversation

@bryanpizzillo
Copy link
Member

No description provided.

@bryanpizzillo bryanpizzillo requested a review from a team as a code owner November 5, 2025 17:59

// Check if site_env matches a prod environment name...
if (in_array($site_env, self::PROD_AH_SITE_ENVS) ||
preg_match('/^.*(www-prod-acsf|www-cms).*$/', $site_env)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Hey @jfrank-nih -- I don't think this is something that should have been changed... But also, why is only this here?

Comment on lines 3 to 17
if (isset($_ENV['AH_ENVIRONMENT_TYPE']) && $_ENV['AH_ENVIRONMENT_TYPE'] === 'meo') {
$settingsFiles = [
DRUPAL_ROOT . '/sites/settings/pre_includes.php',
DRUPAL_ROOT . '/sites/settings/post_includes.php',
DRUPAL_ROOT . '/sites/settings/post_memcache.php',
DRUPAL_ROOT . '/sites/settings/post_new_relic.php'
];
foreach ($settingsFiles as $settingsFile) {
if (file_exists($settingsFile)) {
// phpcs:ignore
require $settingsFile;
}
}
return;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

2 things:

  1. The folder location means they are getting loaded in global.settings.php
    • These probably come first
    • We need to plot the order again of all the includes.
  2. Return? Really? So are we skipping our config settings?

// ===== Added by acsf-init, please do not delete. Section end. =====
}

// @codingStandardsIgnoreFile
Copy link
Member Author

Choose a reason for hiding this comment

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

This is also a little silly.

Comment on lines 27 to 28
if ($_ENV['AH_ENVIRONMENT_TYPE'] === 'meo') {
switch ($env) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is messy. We should re-work this so it is just 1 switch. Maybe just fake the meo environment names...

But also, what in here is NOT going to get the max_age? Maybe we negate this whole thing. It looks like this is just for the everything but the local env.

(NOW, it USED to have different settings, but I think changes there make this no longer valid.)

@bryanpizzillo bryanpizzillo force-pushed the meo-20251105 branch 2 times, most recently from 278f57f to aad3bb5 Compare November 12, 2025 18:55
@bryanpizzillo
Copy link
Member Author

Based on discussions with Acquia we no longer need:

Settings

  • post_memcache.php - only needed by non cloud-next environments and was a port of the ACSF only settings.
  • post_new_relic.php - We should not be using it anymore.
  • pre_includes.php - DRS is called in the settings.php, so no need to call it again.

We also cleaned up the settings.php file to make it simpler

Hooks / Factory Hooks

  • 000_meo_db_scrub - another port from acsf that was acsf specific.

if (isset($_acsf_site_name)) {
$settings['file_public_path'] = "sites/default/files/$_acsf_site_name";
$settings['file_private_path'] = "$repo_root/files-private/$_acsf_site_name";
if (isset($_meo_site_name)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I thoughtI removed all the meo junk and I, well, half did. We should fully do this...

@cgdp-management-server
Copy link

ODE Deployment

Code has been deployed to ODE 1046.

@bryanpizzillo bryanpizzillo force-pushed the meo-20251105 branch 2 times, most recently from 7ab1f78 to 5fce808 Compare November 18, 2025 22:35
// Include Acquia sites.inc
if (file_exists('/var/www/site-php')) {
// phpcs:ignore
require '/var/www/site-php/' . $_ENV['AH_SITE_GROUP'] . '/' . $_ENV['AH_SITE_GROUP'] . '-sites.inc';
Copy link
Member Author

Choose a reason for hiding this comment

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

@jfrank-nih - How do we want to manage this file? We talked about not just splatting the path-based domain $sites array before your variable you made for the default domain. Right now it has both mushed together.

- Only make $sites run for MEO
- Removed $_meo_site_name settings for the DB as they are not needed.
- Removed copy of 000-acquia_required_scrub conversion to MEO as it is not needed in this form. (Which calls ACSF)
- Cleaned up "hooks" for site install and meo post-code-deploy.
- Removed post_memcache.php, post_new_relic.php, and pre_includes.php.
- Cleaned up settings.php to not load different settings if MEO or not.
  Settings had a block added by ACSF that failed fast and skipped a
  few of the settings. This was replicated in the MEO conversion, because
  it was in the ACSF config, but it was more of an acsf module opinion.
- Setup an isMEO test in our settings helper, as well as prefixed meo
  environment names to match BLT names in order to avoid confusion with
  ACE names.
- Cleaned up caching max_age block rewire to be MUCH simpler as we were
  listing every Acquia environment in a switch block and setting the
  max_age to the same value. This all was in a test for being in Acquia.
  So it was really pointless to have all the switches and tests.
- Cleaned up how config_directories are set up - just added to settings
  instead of post-settings.php.
- Don't print meo deployment and install scripts on processing.
  (e.g., no set -v)
- www-prod-acsf tests were removed from CgovCoreTools in the patch and
  needed to be added back in.
…nly place we copy db). It would trigger on MEO though.
…luded:

  - Defaulting users file in blt.yml to use Acquia env vars, which also allowed us to remove meo-specific configs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants