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

VACMS-6434: Vets-website content release integration #15523

Merged
merged 29 commits into from
Nov 8, 2023

Conversation

ndouglas
Copy link
Contributor

@ndouglas ndouglas commented Oct 3, 2023

Closes #6434.

QA Steps

I did the following:

A normal build

Screenshot 2023-11-08 at 3 05 13 PM

Screenshot 2023-11-08 at 3 05 23 PM

Wed Nov  8 06:26:03 PM UTC 2023
content-build version: __default
vets-website version: __default
==> Starting a frontend build. This file will be updated as the build progresses.
==> Resetting VA repos to default versions
Gathering patches for root package.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 0 updates, 0 removals
  - Syncing va-gov/content-build (v0.0.3383) into cache
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing va-gov/content-build (v0.0.3383): Cloning ec4aa8360e from cache
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
Package simplesamlphp/simplesamlphp-module-authfacebook is abandoned, you should avoid using it. No replacement was suggested.
Package simplesamlphp/simplesamlphp-module-authwindowslive is abandoned, you should avoid using it. No replacement was suggested.
Package simplesamlphp/simplesamlphp-module-oauth is abandoned, you should avoid using it. No replacement was suggested.
Package simplesamlphp/simplesamlphp-module-riak is abandoned, you should avoid using it. No replacement was suggested.
Package simplesamlphp/simplesamlphp-module-sanitycheck is abandoned, you should avoid using it. No replacement was suggested.
Package simplesamlphp/twig-configurable-i18n is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package twig/extensions is abandoned, you should avoid using it. No replacement was suggested.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating optimized autoload files
113 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
==> Using default content-build version
==> Installing yarn dependencies
> # Prepare content-build project.
> ! ./scripts/should-run-directly.sh || ./scripts/web-install.sh
/var/lib/tugboat/bin /var/lib/tugboat /var/lib/tugboat
/var/lib/tugboat /var/lib/tugboat
Found '/var/lib/tugboat/.nvmrc' with version <16.19.1>
v16.19.1 is already installed.
Now using node v16.19.1 (npm v8.19.3)
Node v16.19.1
NPM 8.19.3
Yarn 1.19.1
Installed yarn version '1.19.1' matches the required version '1.19.1'.
/var/lib/tugboat/web /var/lib/tugboat /var/lib/tugboat
Found '/var/lib/tugboat/web/.nvmrc' with version <14.15.0>
v14.15.0 is already installed.
Now using node v14.15.0 (npm v6.14.8)
yarn run v1.19.1
warning ../../../../package.json: License should be a valid SPDX license expression
$ ./script/install-repos.sh
Cloning into '../vagov-content'...
Cloning into '../vets-website'...
Cloning into '../vets-api'...
Updating files: 100% (8676/8676), done.
Done in 20.26s.
Warning: Ignoring extra certs from `/etc/pki/tls/certs/ca-bundle.crt`, load failed: error:02001002:system library:fopen:No such file or directory
yarn install v1.19.1
warning ../../../../package.json: License should be a valid SPDX license expression
[1/4] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "lodash@^2.4.1"
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @department-of-veterans-affairs/[email protected]" has incorrect peer dependency "eslint-plugin-jsx-a11y@^6.5.1".
warning " > @department-of-veterans-affairs/[email protected]" has incorrect peer dependency "eslint-plugin-sonarjs@^0.12.0".
warning " > @department-of-veterans-affairs/[email protected]" has incorrect peer dependency "eslint-plugin-unicorn@^35.0.0".
warning " > @department-of-veterans-affairs/[email protected]" has unmet peer dependency "@department-of-veterans-affairs/formation@^7.0.1".
warning " > @department-of-veterans-affairs/[email protected]" has unmet peer dependency "i18next@*".
warning " > @department-of-veterans-affairs/[email protected]" has unmet peer dependency "i18next-browser-languagedetector@*".
warning " > [email protected]" has incorrect peer dependency "prettier@>=2.0.0".
warning " > [email protected]" has incorrect peer dependency "mocha@^4.0.1".
[4/4] Building fresh packages...
$ husky install
Warning: Ignoring extra certs from `/etc/pki/tls/certs/ca-bundle.crt`, load failed: error:02001002:system library:fopen:No such file or directory
husky - Git hooks installed
Done in 12.46s.
/var/lib/tugboat /var/lib/tugboat
> ./scripts/should-run-directly.sh || ddev composer va:web:install --
==> Using default vets-website version
...
Done in 2644.99s.
/var/lib/tugboat /var/lib/tugboat
Replacing s3 address with local in generated files.
> ./scripts/should-run-directly.sh || ddev composer va:web:build --
==> Build complete

A build with specified content-build and vets-website versions:

Screenshot 2023-11-08 at 2 20 22 PM

Screenshot 2023-11-08 at 2 20 31 PM

Wed Nov  8 07:20:33 PM UTC 2023
content-build version: 1783
vets-website version: 26628
...
==> Checking out the requested frontend version
From https://github.com/department-of-veterans-affairs/content-build
 * branch                refs/pull/1783/head -> FETCH_HEAD
Previous HEAD position was ec4aa8360 fix naked link, remove aria label, use va-link component (#1782)
HEAD is now at 314282203 Enable form 21-0966
...
==> Checking out the requested vets-website version
From https://github.com/department-of-veterans-affairs/vets-website
 * branch                  refs/pull/26628/head -> FETCH_HEAD
Note: switching to 'FETCH_HEAD'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at bbe24f57fd Reenable deep linking PACT Act test after devops change
...
Done in 2324.76s.
/var/lib/tugboat /var/lib/tugboat
Replacing s3 address with local in generated files.
> ./scripts/should-run-directly.sh || ddev composer va:web:build --
==> Build complete

Automated Tests

See this video: https://pr15523-fd72c9bfvnmyedcrkvhxbnlciqgevv3m.ci.cms.va.gov/cypress/videos/platform/content_release.feature.mp4

@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 3, 2023 14:36 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 3, 2023 14:40 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 3, 2023 14:54 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 3, 2023 15:06 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 3, 2023 19:32 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 4, 2023 16:41 Destroyed
@jilladams
Copy link
Contributor

O M G 🎉 discovered this PR live while on a call about wow how much easier would things be if this ticket got moving. Sitewide ❤️ s Nate and the CMS team for making this happen!!

@ndouglas
Copy link
Contributor Author

ndouglas commented Oct 4, 2023

@jilladams Yeah, hoping to have this in by the end of the sprint 🙂

@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 4, 2023 19:04 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 4, 2023 19:45 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 12:01 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 16:27 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 20:16 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 7, 2023 15:53 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 31, 2023 17:40 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 31, 2023 18:06 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 6, 2023 14:25 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 6, 2023 17:02 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 8, 2023 14:48 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 8, 2023 14:48 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 8, 2023 15:20 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 8, 2023 16:04 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 8, 2023 17:47 Destroyed
@ndouglas ndouglas marked this pull request as ready for review November 8, 2023 20:08
@ndouglas ndouglas requested review from a team as code owners November 8, 2023 20:08
@ndouglas
Copy link
Contributor Author

ndouglas commented Nov 8, 2023

@jilladams No need to test anything, but I'd appreciate it if you could tell me whether this roughly matched the experience you had in mind for this functionality. If there are any small changes you'd like 😓, I could roll them into a followup ticket.

@ndouglas
Copy link
Contributor Author

ndouglas commented Nov 8, 2023

Not seeing any accessibility issues.

These two are for best practices and related to the toolbar, not my changes.

Screenshot 2023-11-08 at 3 18 01 PM

Copy link
Contributor

@edmund-dunn edmund-dunn left a comment

Choose a reason for hiding this comment

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

Nicely done! Clean!

@jilladams
Copy link
Contributor

The interface makes sense, conceptually. I think the help text is confusing. I don't know if this is within our control (and it may not be worth the effort to change), but: for example, if I type clp in the vets-website picker: I can select a 3 year old PR, with a deleted branch:

Screenshot 2023-11-08 at 2 20 26 PM

PR: department-of-veterans-affairs/vets-website#16896
Branch: https://github.com/department-of-veterans-affairs/vets-website/tree/kelsonic-23418-campaign-mission-act-analytics

Would the build succeed if I did that? What branch would it use? ( I didn't do a content release to find out, because that takes a long time.)

Again: that may already be default behavior for the content-build picker, and I think by and large people bothering to use this field will specify a branch they care about that still exists.

@jilladams
Copy link
Contributor

Nevermind - I checked the prod mirror tugboat and this is how it already is for the content-build one so: feel free to call it good enough! Woo!

@ndouglas ndouglas merged commit f2ee99b into main Nov 8, 2023
19 checks passed
@ndouglas ndouglas deleted the VACMS-6434-vets-website-content-release-integration branch November 8, 2023 23:51
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.

Allow users to select a vets-website branch with which to build tugboat previews
4 participants