Skip to content

Commit 5d36607

Browse files
committed
Merge remote-tracking branch 'upstream/dev-2.x' into move-trailing-comments
2 parents 3cce36c + 1fc2003 commit 5d36607

File tree

82 files changed

+1122
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1122
-566
lines changed

.github/workflows/cibuild.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ name: OTP CI Build
33
# But triggering on push only will miss pull requests from outside authors.
44
# The push event's ref is the name of the pushed branch;
55
# The pull_request event's branch name is the merge target branch.
6+
# The merge_group event's branch name is the merge target branch.
67
on:
78
push:
89
branches:
910
- master
10-
- dev-1.x
1111
- dev-2.x
1212
pull_request:
1313
branches:
1414
- master
15-
- dev-1.x
15+
- dev-2.x
16+
merge_group:
17+
branches:
18+
- master
1619
- dev-2.x
1720
env:
1821
# maven default arguments to make the log quieter and colourful
@@ -54,22 +57,22 @@ jobs:
5457
mvn package -Dmaven.test.skip -P prettierSkip,checkstyleSkip
5558
5659
- name: Send coverage data to codecov.io
57-
if: github.repository_owner == 'opentripplanner'
60+
if: github.repository_owner == 'opentripplanner' && github.event_name != 'merge_group'
5861
uses: codecov/codecov-action@v4
5962
with:
6063
token: ${{ secrets.CODECOV_TOKEN }}
6164
verbose: true
6265

6366
- name: Upload test results to Codecov
6467
# always upload test results, even when failed
65-
if: ${{ !cancelled() }}
68+
if: ${{ !cancelled() }} && github.event_name != 'merge_group'
6669
uses: codecov/test-results-action@v1
6770
with:
6871
token: ${{ secrets.CODECOV_TOKEN }}
6972
files: "*TEST-*.xml"
7073

7174
- name: Deploy to Github Package Registry
72-
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev-1.x' || github.ref == 'refs/heads/dev-2.x')
75+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev-2.x')
7376
env:
7477
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7578
run: mvn deploy --settings maven-settings.xml -DskipTests -DGITHUB_REPOSITORY=$GITHUB_REPOSITORY -P prettierSkip,checkstyleSkip,deployGitHub
@@ -116,14 +119,14 @@ jobs:
116119

117120
- uses: actions/checkout@v4
118121
# for a simple PR where we don't push, we don't need any credentials
119-
if: github.event_name == 'pull_request'
122+
if: github.event_name != 'push'
120123

121124
- name: Install Python dependencies
122125
run: pip install -r doc/user/requirements.txt
123126

124127

125128
- name: Build main documentation
126-
if: github.event_name == 'pull_request'
129+
if: github.event_name != 'push'
127130
run: mkdocs build
128131

129132
- uses: actions/setup-node@v4

.github/workflows/debug-client.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
paths:
1414
- 'client/**'
1515
- 'application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql'
16+
merge_group:
17+
branches:
18+
- dev-2.x
19+
# path filtering not supported https://github.com/orgs/community/discussions/45899
1620
workflow_dispatch:
1721

1822
# to avoid conflicts, make sure that only one workflow pushes to Github at the same time
@@ -35,7 +39,7 @@ jobs:
3539

3640
# for a simple PR where we don't push, we don't need any credentials
3741
- uses: actions/checkout@v4
38-
if: github.event_name == 'pull_request'
42+
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
3943

4044
- uses: actions/setup-node@v4
4145
with:

.github/workflows/schema-validation.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
pull_request:
55
branches:
66
- dev-2.x
7+
# We have to run this on merge_group despite it doing nothing since otherwise this required check isn't "successful"
8+
merge_group:
9+
branches:
10+
- dev-2.x
711

812
jobs:
913
validate-gtfs-schema:
10-
if: github.repository_owner == 'opentripplanner'
14+
if: github.repository_owner == 'opentripplanner' && github.event_name == 'pull_request'
1115
name: Validate GTFS GraphQL schema changes
1216
runs-on: ubuntu-latest
1317

@@ -32,7 +36,7 @@ jobs:
3236
graphql-inspector diff 'git:origin/dev-2.x:application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls' 'application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls'
3337
3438
validate-transmodel-schema:
35-
if: github.repository_owner == 'opentripplanner'
39+
if: github.repository_owner == 'opentripplanner' && github.event_name == 'pull_request'
3640
name: Validate Transmodel GraphQL schema changes
3741
runs-on: ubuntu-latest
3842

application/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
<dependency>
184184
<groupId>org.mockito</groupId>
185185
<artifactId>mockito-core</artifactId>
186-
<version>5.20.0</version>
186+
<version>5.21.0</version>
187187
<scope>test</scope>
188188
</dependency>
189189
<dependency>
@@ -467,6 +467,7 @@
467467
<sources>
468468
<source>src/main/java</source>
469469
<source>src/ext/java</source>
470+
<source>${project.build.directory}/generated-sources/annotations</source>
470471
</sources>
471472
</configuration>
472473
</execution>

application/src/client/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<link rel="icon" type="image/svg+xml" href="/img/otp-logo.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>OTP Debug</title>
8-
<script type="module" crossorigin src="https://www.opentripplanner.org/debug-client-assets/2025/12/2025-12-09T10:25/assets/index-B-lQDPEB.js"></script>
9-
<link rel="stylesheet" crossorigin href="https://www.opentripplanner.org/debug-client-assets/2025/12/2025-12-09T10:25/assets/index-BXH2cJLw.css">
8+
<script type="module" crossorigin src="https://www.opentripplanner.org/debug-client-assets/2025/12/2025-12-16T13:55/assets/index-CwrhLyfM.js"></script>
9+
<link rel="stylesheet" crossorigin href="https://www.opentripplanner.org/debug-client-assets/2025/12/2025-12-16T13:55/assets/index-BXH2cJLw.css">
1010
</head>
1111
<body>
1212
<div id="root"></div>

application/src/ext-test/java/org/opentripplanner/ext/flex/trip/FlexTripsMapperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
import org.opentripplanner.ext.flex.FlexTripsMapper;
1111
import org.opentripplanner.ext.flex.flexpathcalculator.DirectFlexPathCalculator;
1212
import org.opentripplanner.graph_builder.issue.service.DefaultDataImportIssueStore;
13-
import org.opentripplanner.model.impl.OtpTransitServiceBuilder;
13+
import org.opentripplanner.model.impl.TransitDataImportBuilder;
1414
import org.opentripplanner.transit.service.SiteRepository;
1515

1616
class FlexTripsMapperTest {
1717

1818
@Test
1919
void defaultTimePenalty() {
20-
var builder = new OtpTransitServiceBuilder(SiteRepository.of().build(), NOOP);
20+
var builder = new TransitDataImportBuilder(SiteRepository.of().build(), NOOP);
2121
builder
2222
.getStopTimesSortedByTrip()
2323
.addAll(List.of(area("10:00", "18:00"), area("10:00", "18:00")));
@@ -34,7 +34,7 @@ void defaultTimePenalty() {
3434
@Test
3535
void tooFewStopTimes() {
3636
var issueStore = new DefaultDataImportIssueStore();
37-
var builder = new OtpTransitServiceBuilder(SiteRepository.of().build(), issueStore);
37+
var builder = new TransitDataImportBuilder(SiteRepository.of().build(), issueStore);
3838
builder.getStopTimesSortedByTrip().addAll(List.of(area("10:00", "18:00")));
3939
var trips = FlexTripsMapper.createFlexTrips(builder, issueStore);
4040
assertEquals(0, trips.size());

application/src/ext/java/org/opentripplanner/ext/fares/service/NoopFareServiceFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.fasterxml.jackson.databind.JsonNode;
44
import org.opentripplanner.ext.fares.model.FareRulesData;
5-
import org.opentripplanner.model.OtpTransitService;
65
import org.opentripplanner.model.fare.ItineraryFare;
76
import org.opentripplanner.model.plan.Itinerary;
87
import org.opentripplanner.routing.fares.FareService;
@@ -20,7 +19,7 @@ public FareService makeFareService() {
2019
}
2120

2221
@Override
23-
public void processGtfs(FareRulesData a, OtpTransitService b) {}
22+
public void processGtfs(FareRulesData a) {}
2423

2524
@Override
2625
public void configure(JsonNode config) {}

application/src/ext/java/org/opentripplanner/ext/fares/service/gtfs/v1/DefaultFareServiceFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import org.opentripplanner.ext.fares.model.FareTransferRule;
1818
import org.opentripplanner.ext.fares.service.gtfs.GtfsFaresService;
1919
import org.opentripplanner.ext.fares.service.gtfs.v2.GtfsFaresV2Service;
20-
import org.opentripplanner.model.OtpTransitService;
2120
import org.opentripplanner.routing.core.FareType;
2221
import org.opentripplanner.routing.fares.FareService;
2322
import org.opentripplanner.routing.fares.FareServiceFactory;
@@ -52,7 +51,7 @@ public FareService makeFareService() {
5251
}
5352

5453
@Override
55-
public void processGtfs(FareRulesData fareRulesData, OtpTransitService transitService) {
54+
public void processGtfs(FareRulesData fareRulesData) {
5655
fillFareRules(fareRulesData.fareAttributes(), fareRulesData.fareRules(), regularFareRules);
5756
this.fareLegRules.addAll(fareRulesData.fareLegRules());
5857
this.fareTransferRules.addAll(fareRulesData.fareTransferRules());

application/src/ext/java/org/opentripplanner/ext/fares/service/gtfs/v1/custom/AtlantaFareServiceFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.opentripplanner.ext.fares.model.FareRuleSet;
88
import org.opentripplanner.ext.fares.model.FareRulesData;
99
import org.opentripplanner.ext.fares.service.gtfs.v1.DefaultFareServiceFactory;
10-
import org.opentripplanner.model.OtpTransitService;
1110
import org.opentripplanner.routing.fares.FareService;
1211

1312
public class AtlantaFareServiceFactory extends DefaultFareServiceFactory {
@@ -23,7 +22,7 @@ public FareService makeFareService() {
2322
* This step ensures that the fares in the source GTFS data are accounted for correctly.
2423
*/
2524
@Override
26-
public void processGtfs(FareRulesData fareRuleService, OtpTransitService transitService) {
25+
public void processGtfs(FareRulesData fareRuleService) {
2726
fillFareRules(fareRuleService.fareAttributes(), fareRuleService.fareRules(), regularFareRules);
2827
}
2928

application/src/ext/java/org/opentripplanner/ext/fares/service/gtfs/v1/custom/HighestFareInFreeTransferWindowFareServiceFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import org.opentripplanner.ext.fares.model.FareRuleSet;
1111
import org.opentripplanner.ext.fares.model.FareRulesData;
1212
import org.opentripplanner.ext.fares.service.gtfs.v1.DefaultFareServiceFactory;
13-
import org.opentripplanner.model.OtpTransitService;
1413
import org.opentripplanner.routing.fares.FareService;
1514
import org.opentripplanner.standalone.config.framework.json.NodeAdapter;
1615

@@ -48,7 +47,7 @@ public FareService makeFareService() {
4847
* This step ensures that the fares in the source GTFS data are accounted for correctly.
4948
*/
5049
@Override
51-
public void processGtfs(FareRulesData fareRulesData, OtpTransitService transitService) {
50+
public void processGtfs(FareRulesData fareRulesData) {
5251
fillFareRules(fareRulesData.fareAttributes(), fareRulesData.fareRules(), regularFareRules);
5352
}
5453

0 commit comments

Comments
 (0)