Skip to content

Conversation

@kadel
Copy link
Member

@kadel kadel commented Feb 5, 2026

Summary

  • Fix e2e test failures caused by native module build issues and incorrect workspace handling
  • Improve error logging in test runner to show detailed failure information
  • Install dependencies from workspace root instead of individual plugin directories

Changes

  • Use YARN_ENABLE_SCRIPTS=false to skip native module builds during yarn install
  • Run yarn install and yarn tsc from workspace root (workspaces/tech-radar)
  • Run yarn build in specific plugin directories after TypeScript declarations are generated
  • Add comprehensive error logging showing exit code, stdout, stderr on command failures

Why skip native module builds?

The workspace includes isolated-vm, a C++ native module that can fail to compile in CI environments. The plugins being tested don't require it at build time, so we skip native compilation while still installing all JavaScript dependencies.

Test plan

  • Run yarn test:e2e - all 4 tests pass
  • Verify frontend plugin export and package works
  • Verify backend plugin export and package works

The e2e tests were failing due to three issues:
- isolated-vm native module build failures during yarn install
- Running yarn install from plugin directory instead of workspace root
- Missing TypeScript declaration files required for plugin builds

This fix:
- Uses YARN_ENABLE_SCRIPTS=false to skip native module builds
- Installs dependencies from workspace root (workspaces/tech-radar)
- Runs yarn tsc at workspace level before building individual plugins
- Improves error logging to show detailed failure information

Assisted-by: Claude Code
Signed-off-by: Tomas Kral <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

Copy link
Member

@nickboldt nickboldt left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 11, 2026
@nickboldt nickboldt merged commit f50875e into redhat-developer:main Feb 11, 2026
7 checks passed
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