spring-projects / spring-projects/spring-ai

Tests failing on Windows: improve line separator management

Open
#5,629 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Bug description
Some tests are failing because the expected results do not take care (enough) about the OS specific line separator (Windows: \r\n vs expected: \n).

Environment
Spring AI version 2.x.x, Java version 17

Steps to reproduce
Clone the repository then run all the tests: mvnw --batch-mode -ntp --update-snapshots verify

Expected behavior
All tests are passing

Minimal Complete Reproducible example
N/A

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

Run mvnw --batch-mode -ntp --update-snapshots verify on Windows and inspect the tests that fail because of \r\n versus \n expectations. Update the affected line-separator handling so the full verification command passes on Windows and other operating systems.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.