Skip to content

Fix daily build LS job failures and add label-gated LS tests to PR checks#644

Open
gigara wants to merge 6 commits into
wso2:mainfrom
gigara:ls-daily-build-fixes
Open

Fix daily build LS job failures and add label-gated LS tests to PR checks#644
gigara wants to merge 6 commits into
wso2:mainfrom
gigara:ls-daily-build-fixes

Conversation

@gigara

@gigara gigara commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • LS Windows build fix: the git config core.longpaths step ran in the job's default working directory (packages/ballerina-language-server), which does not exist before checkout — Windows fails to start the shell. The step now runs in the workspace root.
  • LS Ubuntu test fix: ArtifactsTest failures were caused by package icon URLs embedding package versions (e.g. ballerina_tcp_1.13.2.png vs expected ..._1.13.5.png) that drift with the distribution used in CI. AbstractLSTest now normalizes the version segment away when comparing icon fields.
  • Label-gated LS tests in PR checks: LS Java test suites previously only ran in the daily build on main, so breakages surfaced post-merge. Adding the Checks/Run LS Tests label to a PR now runs ./gradlew test for the language server, mirroring the existing e2e label pattern.

Test plan

  • Add the Checks/Run LS Tests label to this PR and confirm the new Run Ballerina LS tests job runs and passes (verifies the ArtifactsTest fix pre-merge)
  • After merge, confirm the next daily build's LS Windows build and LS Ubuntu test jobs pass

🤖 Generated with Claude Code

gigara and others added 3 commits June 10, 2026 14:04
- LS Windows build: the longpaths step ran in the job default working
  directory which does not exist before checkout; run it in the workspace
  root instead.
- LS Ubuntu test: package icon URLs embed the package version, which
  drifts with the distribution used in CI; normalize the version away
  when comparing icon fields in AbstractLSTest.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
LS Java test suites previously only ran in the daily build on main,
so LS test breakages surfaced post-merge. Adding the
'Checks/Run LS Tests' label to a PR now runs ./gradlew test for the
language server, mirroring the e2e test label pattern.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@gigara, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 40 minutes and 53 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6c6407e1-baa7-4311-a5b0-24b5faaf91e1

📥 Commits

Reviewing files that changed from the base of the PR and between 3b084ef and 55a3f41.

📒 Files selected for processing (6)
  • .github/actions/ls-test/action.yml
  • .github/workflows/build.yml
  • .github/workflows/daily-build.yml
  • .github/workflows/pull-request.yml
  • packages/ballerina-language-server/architecture-model-generator/modules/architecture-model-generator-ls-extension/src/test/java/io/ballerina/designmodelgenerator/extension/ArtifactsTest.java
  • packages/ballerina-language-server/model-generator-commons/src/main/java/io/ballerina/modelgenerator/commons/AbstractLSTest.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

gigara and others added 2 commits June 10, 2026 14:41
The icon URL version normalization in AbstractLSTest only applied to the
diff logging; the assertion still used raw JsonObject.equals, so the test
kept failing on package version drift with an empty diff.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Deduplicates the LS test setup between the daily build and the
label-gated PR check. The daily matrix resolves the action from the
matrix.branch checkout, so release branches need this file backported.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant