Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add call to MTCValidator #297

Merged
merged 4 commits into from
Apr 14, 2020
Merged

Add call to MTCValidator #297

merged 4 commits into from
Apr 14, 2020

Conversation

binh-dam-ibigroup
Copy link
Contributor

@binh-dam-ibigroup binh-dam-ibigroup commented Apr 10, 2020

Checklist

  • Appropriate branch selected (to mtc-20200310)
  • The description lists any configuration setting(s) that differ from the default settings

Description

This PR adds a call to MTCValidator and updates gtfsplus.yml to match MTC guidelines.

MTCValidator is available on the field-lengh-validator (MTC) branch of gtfs-lib or on the main branch if (conveyal/gtfs-lib#276 is merged (the normal CI process fails the build because of that).

@@ -313,11 +310,9 @@ public void validate(MonitorableJob.Status status) {
// run validation on feed version
// FIXME: pass status to validate? Or somehow listen to events?
status.update("Validating feed...", 33);
validationResult = GTFS.validate(feedLoadResult.uniqueIdentifier, DataManager.GTFS_DATA_SOURCE);
validationResult = GTFS.validate(feedLoadResult.uniqueIdentifier, DataManager.GTFS_DATA_SOURCE, MTCValidator::new);
Copy link
Contributor

@landonreed landonreed Apr 14, 2020

Choose a reason for hiding this comment

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

@binh-dam-ibigroup, I think we should only run the MTCValidator if the MTC extension is enabled isExtensionEnabled("mtc"). We only want the MTC-specific checks running on MTC instances of Data Tools, not for everyone. We should also add some commentary about this.

Copy link
Contributor

@landonreed landonreed left a comment

Choose a reason for hiding this comment

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

One change needed with respect to the MTCValidator. Also, the gtfs-lib dependency is ready to be updated in pom.xml.

@codecov-io
Copy link

codecov-io commented Apr 14, 2020

Codecov Report

Merging #297 into mtc-20200310 will decrease coverage by 0.71%.
The diff coverage is 28.57%.

Impacted file tree graph

@@                Coverage Diff                 @@
##             mtc-20200310     #297      +/-   ##
==================================================
- Coverage           20.74%   20.03%   -0.72%     
+ Complexity            468      414      -54     
==================================================
  Files                 152      151       -1     
  Lines                9186     8329     -857     
  Branches             1320     1146     -174     
==================================================
- Hits                 1906     1669     -237     
+ Misses               7116     6509     -607     
+ Partials              164      151      -13     
Flag Coverage Δ Complexity Δ
#unit_tests 20.03% <28.57%> (-0.72%) 414.00 <2.00> (-54.00)
Impacted Files Coverage Δ Complexity Δ
...conveyal/datatools/manager/models/FeedVersion.java 33.05% <28.57%> (+4.03%) 12.00 <2.00> (-2.00) ⬆️
...va/com/conveyal/datatools/manager/DataManager.java 77.08% <0.00%> (-4.49%) 35.00% <0.00%> (-19.00%)
.../conveyal/datatools/manager/jobs/GisExportJob.java 84.82% <0.00%> (-3.60%) 11.00% <0.00%> (-11.00%)
...nveyal/datatools/common/status/MonitorableJob.java 74.57% <0.00%> (-2.83%) 11.00% <0.00%> (-8.00%)
...ols/manager/controllers/api/ProjectController.java 11.42% <0.00%> (-0.91%) 2.00% <0.00%> (ø%)
.../conveyal/datatools/manager/models/FeedSource.java 12.69% <0.00%> (-0.74%) 9.00% <0.00%> (-9.00%)
...com/conveyal/datatools/manager/jobs/DeployJob.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...com/conveyal/datatools/manager/models/EC2Info.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...datatools/editor/jobs/ExportSnapshotToGTFSJob.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...datatools/manager/jobs/MonitorServerStatusJob.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12f8dd5...0ae68ed. Read the comment docs.

@landonreed landonreed merged commit 62dd007 into mtc-20200310 Apr 14, 2020
@landonreed landonreed deleted the mtc-config branch April 14, 2020 21:11
@landonreed landonreed mentioned this pull request Oct 30, 2020
8 tasks
@landonreed
Copy link
Contributor

🎉 This PR is included in version 3.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants