redhat-developer / redhat-developer/vscode-java

Intermitent test failures in "should register all java commands"

Open
#1,892 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug build/infra
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

On the build job, this only fails on Mac but I have been able to reproduce the failures locally as well on Linux.

1) Java Language Extension - Standard
       should register all java commands:
      AssertionError [ERR_ASSERTION]: Some Java commands are not registered properly or a new command is not added to the test.

...
...

      + expected - actual

         "java.action.showSupertypeHierarchy"
         "java.action.showTypeHierarchy"
         "java.apply.workspaceEdit"
         "java.clean.workspace"
      -  "java.edit.organizeImports"
         "java.execute.workspaceCommand"
         "java.ignoreIncompleteClasspath"
         "java.ignoreIncompleteClasspath.help"
         "java.open.clientLog"
--
         "java.open.serverLog"
         "java.project.addToSourcePath"
         "java.project.import"
         "java.project.listSourcePaths"
      -  "java.project.refreshDiagnostics"
         "java.project.removeFromSourcePath"
         "java.project.updateSourceAttachment"
         "java.projectConfiguration.status"
         "java.projectConfiguration.update"

  	at /Users/travis/build/redhat-developer/vscode-java/out/test/standard-mode-suite/extension.test.js:74:20

  	at processTicksAndRejections (internal/process/task_queues.js:97:5)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with out/test/standard-mode-suite/extension.test.js at the failing assertion and run the "should register all java commands" test on Mac and Linux. Compare the registered command list across runs to identify the intermittent difference; done means the test passes reliably on the affected platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.