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

Revert "VACMS-16853: next build branches ftw" #17261

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .tugboat/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,6 @@ services:
- mv "${TUGBOAT_ROOT}/scripts/queue_runner/queue_runner.sh" /etc/service/drupal_events/run
- chmod +x /etc/service/drupal_events/run

# Separate process for next-build preview.
- mkdir -p /etc/service/next_build
- mv "${TUGBOAT_ROOT}/scripts/queue_runner/next_queue_runner.sh" /etc/service/next_build/run
- chmod +x /etc/service/next_build/run
# Need to make build script executable so the runner can run it.
- chmod +x "${TUGBOAT_ROOT}/scripts/next-build-frontend.sh"

clone:
# This j2 command is shared in both the build & clone stages. If modifying, change the other too.
- j2 "${TUGBOAT_ROOT}/.tugboat/.env.j2" -o "${TUGBOAT_ROOT}/.env"
Expand Down
30 changes: 1 addition & 29 deletions READMES/cms-content-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ sequenceDiagram
Complete->>+Ready: Content release workflow has completed
```


# Environment specific details

## BRD Production
Expand Down Expand Up @@ -143,35 +144,6 @@ The Tugboat and local development versions of the release content page do not tr

For more information on creating or releasing content from a preview environment, see [Environments](./environments.md).

### Next Build Releases

The upcoming static frontend "next-build" can be rebuilt using different versions of next-build and vets-website. It
is a simpler process than the current content-build workflow.

1. Go to "/admin/content/deploy/next".
2. If the form elements are disabled, then a lock file exists preventing another build from being triggered. You
can skip to step #6.
2. Choose a version for next-build or leave at default.
3. Choose a version for vets-website or leave at default. When content-build is releasing, these form fields might
be disabled. We can't change the vets-website version while another frontend build is running.
4. Click "Release Content" to set the versions of next-build and vets-website as well as write a "buildrequest" file.
5. A `scripts/queue_runner/next_queue_runner.sh` script continuously runs in the background looking for the
"buildrequest" file and then start a build if found. Locally, the script has to be triggered manually. See the
[caveats](#caveats) section for more information.
6. Back on "/admin/content/deploy/next" you can view the build log via a link in the "Status" section of the
"Next Build Information" block.
7. Once the build completes no new build will be triggered until you click to release content again.
8. View the frontend at the provided "View Preview" link in the "Next Build Information" block.

#### Caveats

There are some caveats to the process outlined above.

- **Manually running the background script** - On `ddev` the `queue_runner` scripts aren't running continuously in
background jobs. So you must `ddev ssh && ./scripts/queue_runner/` to kick off the content build or next build
release locally. In the future, it might be a good idea to use `system.d` or `supervisor` or something else to
keep the background jobs going locally just like on Tugoboat.

## Troubleshooting

Sometimes the state gets stuck and needs to be reset. It can be done with a drush command
Expand Down
4 changes: 2 additions & 2 deletions config/sync/next.next_site.next_build_preview_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ status: true
dependencies: { }
id: next_build_preview_server
label: 'Next Build Preview Server'
base_url: 'http://localhost:3999'
preview_url: 'http://localhost:3999/api/preview'
base_url: 'http://localhost:3000'
preview_url: 'http://localhost:3000/api/preview'
preview_secret: secret
revalidate_url: ''
revalidate_secret: ''
13 changes: 0 additions & 13 deletions docroot/modules/custom/va_gov_content_release/README.md

This file was deleted.

Loading
Loading