Skip to content

fix: resolve e2e test failures for community plugin build#52

Open
kadel wants to merge 2 commits intoredhat-developer:mainfrom
kadel:fix-e2e-test-failures
Open

fix: resolve e2e test failures for community plugin build#52
kadel wants to merge 2 commits intoredhat-developer:mainfrom
kadel:fix-e2e-test-failures

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 <tkral@redhat.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

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.

1 participant