Broken master: Job failure caused by outdated yarn.lock after dompurify v2.4.5 upgrade

Summary

Steps to reproduce

Proposed Resolution

Please refer to the Resolution guidance to learn more about resolution of broken master.

Job #3896848569 failed for 40f47b10:

$ bundle exec scripts/glfm/verify-all-generated-files-are-up-to-date.rb
Verifying all generated files are up to date after running GLFM scripts...
Running `yarn install --frozen-lockfile` to ensure `yarn check-dependencies` doesn't fail...
Running `/builds/gitlab-org/gitlab/scripts/glfm/update-specification.rb`...
Running `/builds/gitlab-org/gitlab/scripts/glfm/update-example-snapshots.rb`...
Error running command `/builds/gitlab-org/gitlab/scripts/glfm/update-example-snapshots.rb`
Updating example snapshots...
Reading /builds/gitlab-org/gitlab/glfm_specification/output_example_snapshots/snapshot_spec.md...
Reading /builds/gitlab-org/gitlab/glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml...
Creating/Overwriting /builds/gitlab-org/gitlab/glfm_specification/output_example_snapshots/examples_index.yml...
Reading /builds/gitlab-org/gitlab/glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml...
Reading /builds/gitlab-org/gitlab/glfm_specification/input/gitlab_flavored_markdown/glfm_example_metadata.yml...
Reading /builds/gitlab-org/gitlab/glfm_specification/input/gitlab_flavored_markdown/glfm_example_normalizations.yml...
Creating/Overwriting /builds/gitlab-org/gitlab/glfm_specification/output_example_snapshots/markdown.yml...
Generating static HTML from markdown examples...
Reading generated static HTML from tempfile /tmp/STATIC_HTML_TEMPFILE_20230308-701-n5qzye.yml...
Generating WYSIWYG HTML and prosemirror JSON from markdown examples...
Error running command `yarn jest --testMatch '**/render_wysiwyg_html_and_json.js' /builds/gitlab-org/gitlab/scripts/lib/glfm/render_wysiwyg_html_and_json.js`
yarn run v1.22.19
$ yarn check-dependencies
$ scripts/frontend/check_dependencies.sh
warning Integrity check: Lock files don't match
error Integrity check failed
error Found 1 errors.
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
    yarn check --integrity failed!
    Your dependencies probably don't match the yarn.lock file.
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
    Please run yarn install and try again.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/builds/gitlab-org/gitlab/scripts/lib/glfm/shared.rb:42:in `run_external_cmd': unhandled exception
	from /builds/gitlab-org/gitlab/scripts/lib/glfm/update_example_snapshots.rb:293:in `generate_wysiwyg_html_and_json'
	from /builds/gitlab-org/gitlab/scripts/lib/glfm/update_example_snapshots.rb:137:in `write_snapshot_example_files'
	from /builds/gitlab-org/gitlab/scripts/lib/glfm/update_example_snapshots.rb:44:in `process'
	from /builds/gitlab-org/gitlab/scripts/glfm/update-example-snapshots.rb:5:in `<main>'
bundler: failed to load command: scripts/glfm/verify-all-generated-files-are-up-to-date.rb (scripts/glfm/verify-all-generated-files-are-up-to-date.rb)
/builds/gitlab-org/gitlab/scripts/lib/glfm/shared.rb:42:in `run_external_cmd': unhandled exception
	from /builds/gitlab-org/gitlab/scripts/lib/glfm/verify_all_generated_files_are_up_to_date.rb:37:in `process'
	from scripts/glfm/verify-all-generated-files-are-up-to-date.rb:5:in `<top (required)>'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/cli/exec.rb:58:in `load'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/cli/exec.rb:23:in `run'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/cli.rb:483:in `exec'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/cli.rb:31:in `dispatch'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/cli.rb:25:in `start'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/exe/bundle:48:in `block in <top (required)>'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/exe/bundle:36:in `<top (required)>'
	from /usr/local/bin/bundle:23:in `load'
	from /usr/local/bin/bundle:23:in `<main>'
Uploading artifacts for failed job
00:04
Uploading artifacts...
glfm_specification/: found 21 matching artifact files and directories 
WARNING: Upload request redirected                  location=https://gitlab.com/api/v4/jobs/3896848569/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com
WARNING: Retrying...                                context=artifacts-uploader error=request redirected
Uploading artifacts as "archive" to coordinator... 201 Created  id=3896848569 responseStatus=201 Created token=64_P5Hpr
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1