Skip to content

core: implement logic to enable live search progress logging for LMR#15315

Merged
MartinBourbier merged 1 commit intobam/lmr-search-progressfrom
mbr/core-lmr-search-progress
Mar 18, 2026
Merged

core: implement logic to enable live search progress logging for LMR#15315
MartinBourbier merged 1 commit intobam/lmr-search-progressfrom
mbr/core-lmr-search-progress

Conversation

@MartinBourbier
Copy link
Copy Markdown
Contributor

@MartinBourbier MartinBourbier commented Feb 18, 2026

Closes #15148

Warning

The CI will fail as long as the editoast part is not done

@MartinBourbier MartinBourbier self-assigned this Feb 18, 2026
@github-actions github-actions Bot added the area:core Work on Core Service label Feb 18, 2026
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch 11 times, most recently from a0cdf86 to 56f4c36 Compare February 24, 2026 13:17
Comment thread core/src/main/java/fr/sncf/osrd/cli/WorkerCommand.kt Outdated
Comment thread core/src/main/kotlin/fr/sncf/osrd/api/stdcm/STDCMEndpoint.kt Outdated
Comment thread core/src/main/kotlin/fr/sncf/osrd/api/stdcm/STDCMEndpoint.kt Outdated
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch 7 times, most recently from ff98005 to d688247 Compare March 3, 2026 15:20
@MartinBourbier MartinBourbier marked this pull request as ready for review March 4, 2026 10:13
@MartinBourbier MartinBourbier requested a review from a team as a code owner March 4, 2026 10:13
@MartinBourbier MartinBourbier requested review from Khoyo and eckter March 4, 2026 10:13
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch from d688247 to 7622dcc Compare March 4, 2026 10:23
Copy link
Copy Markdown
Contributor

@eckter eckter left a comment

Choose a reason for hiding this comment

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

I haven't tested it yet, but it does look like what I had in mind. I think we can wait for the editoast part to really test it out.

I'm not sure I understand the current behavior though: it logs progress in the queue, including one update with the final response, and then sends a different response identical to the one before this PR? That explains how it can work without editoast change. Is the plan to remove that final response?

Comment thread core/src/main/kotlin/fr/sncf/osrd/stdcm/tracing/ProgressLogger.kt Outdated
Comment thread core/src/test/java/fr/sncf/osrd/api/WorkerLoadingTest.kt Outdated
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch 3 times, most recently from f14441c to 57b5d70 Compare March 4, 2026 15:30
@MartinBourbier MartinBourbier requested a review from eckter March 4, 2026 15:31
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch from ff74604 to c8b069d Compare March 5, 2026 14:19
@MartinBourbier MartinBourbier changed the base branch from dev to bam/lmr-search-progress March 11, 2026 08:49
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch 2 times, most recently from 97e3143 to a3b04e9 Compare March 11, 2026 14:33
@MartinBourbier MartinBourbier requested a review from a team as a code owner March 12, 2026 10:46
@github-actions github-actions Bot added area:front Work on Standard OSRD Interface modules area:editoast Work on Editoast Service kind:api-change labels Mar 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ API changes

This Pull Request introduces some changes in the API:

  • please own it: notify or even prepare dedicated PR(s) to consumer projects

@MartinBourbier MartinBourbier removed the request for review from a team March 12, 2026 11:06
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch 2 times, most recently from e90651c to a3b04e9 Compare March 12, 2026 14:10
@github-actions github-actions Bot removed area:front Work on Standard OSRD Interface modules area:editoast Work on Editoast Service kind:api-change labels Mar 12, 2026
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch 2 times, most recently from 6945137 to 938efdc Compare March 16, 2026 13:12
Comment on lines +94 to +95
val bestTravelTime =
(node.timeData.earliestReachableTime + node.remainingTimeEstimation).toULong()
Copy link
Copy Markdown
Contributor Author

@MartinBourbier MartinBourbier Mar 18, 2026

Choose a reason for hiding this comment

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

@Khoyo @eckter I changed this calculation. Is it good?

If you don't have anymore suggestions, I would appreciate an approve so I can merge into the feature branch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks correct, but I'm not an STDCM expert

(btw, you don't need a formal approval to merge into a branch that is neither dev nor staging)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point!

Signed-off-by: Martin Bourbier <mbourbier28@gmail.com>
@MartinBourbier MartinBourbier force-pushed the mbr/core-lmr-search-progress branch from 938efdc to ecb66bc Compare March 18, 2026 14:06
@MartinBourbier MartinBourbier merged commit c0f11f1 into bam/lmr-search-progress Mar 18, 2026
24 of 30 checks passed
@MartinBourbier MartinBourbier deleted the mbr/core-lmr-search-progress branch March 18, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Work on Core Service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core: implement live LMR update

3 participants