Skip to content

Comments

Fix CI build issues: resolve yarn version conflicts and hash-value de…#691

Merged
sjaiswalh merged 1 commit intomainfrom
fix-ci-yarn-conflicts
Jan 27, 2026
Merged

Fix CI build issues: resolve yarn version conflicts and hash-value de…#691
sjaiswalh merged 1 commit intomainfrom
fix-ci-yarn-conflicts

Conversation

@sjaiswalh
Copy link
Collaborator

No description provided.

…pendency

- Remove unpublished hash-value npm package, add local helper function
- Fix CI yarn version conflicts by removing .yarnrc.yml in CI and using corepack
- Add timeout to prevent hanging tests
- Update import paths to use local hash-value helper
@sjaiswalh sjaiswalh requested a review from a team as a code owner January 27, 2026 07:13
@hashicorp-cla-app
Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR resolves CI build issues by addressing yarn version conflicts and replacing an external dependency with a local implementation. The changes update the CI workflow to use Corepack for yarn version management and replace the hash-value npm package with a custom TypeScript implementation.

Changes:

  • Removed the hash-value external dependency from package.json
  • Created a local hash-value helper function to replace the removed dependency
  • Updated CI workflow to use Corepack with Node.js 18 and actions/setup-node@v4
  • Added .yarnrc.yml to specify yarn version path

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
web/package.json Removed hash-value dependency
web/app/services/product-areas.ts Updated import to use local hash-value helper
web/app/helpers/hash-value.ts Added custom hash-value implementation
web/.yarnrc.yml Added yarn version configuration
.github/workflows/ci.yml Modernized CI workflow with Corepack and updated Node.js/actions versions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +27 to +28
# Remove .yarnrc.yml to let corepack handle yarn version
rm -f .yarnrc.yml
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The workflow removes .yarnrc.yml that was just added to the repository. This creates confusion about which yarn version management approach is being used. Either keep .yarnrc.yml and use it consistently, or remove it from the repository if Corepack should manage versions.

Suggested change
# Remove .yarnrc.yml to let corepack handle yarn version
rm -f .yarnrc.yml

Copilot uses AI. Check for mistakes.
- name: Run web test
run: make web/test
- name: Run web test (with timeout)
run: cd web && timeout 10m yarn test:ember
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The timeout command may not be available on all CI runners (e.g., macOS). Consider using the workflow-level timeout-minutes setting instead for better cross-platform compatibility.

Copilot uses AI. Check for mistakes.
@sjaiswalh sjaiswalh merged commit 24374fc into main Jan 27, 2026
1 of 2 checks passed
@sjaiswalh sjaiswalh deleted the fix-ci-yarn-conflicts branch January 27, 2026 08:08
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.

2 participants