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

update toil and resurrect tests #300

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

update toil and resurrect tests #300

wants to merge 14 commits into from

Conversation

denis-yuen
Copy link
Member

@denis-yuen denis-yuen commented Nov 26, 2024

Description
Were toil integration tests ever hooked up to circle ci?
Possibly no, I think they must have been broken since we split out dockstore-cli into its own repository from the web-service. This PR updates Toil from 3.15.0 in 2018(!) to 7.0.0(!)

Amazingly, the tests still mostly work, so re-activating them.
Basically, they seem to just test running cwl as an alternative to cwltool and that's how the tests are implemented sharing a lot of code.

Can potentially follow-up with toil wdl testing or just use the environment to test metrics integration work.

Review Instructions
See that there's a handful of extra tests in CircleCI insights corresponding to the integration-tests-toil-integration-tests job

Issue
https://ucsc-cgl.atlassian.net/browse/DOCK-2567
dockstore/dockstore#5964

Security
None

Please make sure that you've checked the following before submitting your pull request. Thanks!

  • Check that you pass the basic style checks and unit tests by running ./mvnw clean install
  • If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

@denis-yuen denis-yuen self-assigned this Nov 26, 2024
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.12%. Comparing base (f73108d) to head (f044c70).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...rc/main/java/io/dockstore/common/ToilOnlyTest.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #300      +/-   ##
=============================================
- Coverage      70.12%   68.12%   -2.01%     
+ Complexity      1060     1022      -38     
=============================================
  Files             47       48       +1     
  Lines           6069     6073       +4     
  Branches         801      801              
=============================================
- Hits            4256     4137     -119     
- Misses          1470     1592     +122     
- Partials         343      344       +1     
Flag Coverage Δ
bitbuckettests 9.83% <0.00%> (-0.01%) ⬇️
confidentialtooltests 55.70% <0.00%> (+0.17%) ⬆️
confidentialworkflowtests 30.26% <0.00%> (-0.01%) ⬇️
nonconfidentialtests 32.33% <0.00%> (-0.06%) ⬇️
singularitytests 16.58% <0.00%> (-0.02%) ⬇️
toilintegrationtests 15.21% <85.71%> (?)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@denis-yuen
Copy link
Member Author

Split out https://ucsc-cgl.atlassian.net/browse/SEAB-6823 since I noticed we're using old surefire and failsafe plugins, but an update may be disruptive


/**
* @author dyuen
*/
@Ignore
// @Category(ToilOnlyTest.class)
@Tag(ToilOnlyTest.NAME)
Copy link
Member Author

Choose a reason for hiding this comment

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

Something weird is going on here with junit and how this is being picked up by surefire/failsafe, may want to work on this together with updating them in general since we're out-of-date in this repo
https://ucsc-cgl.atlassian.net/browse/SEAB-6823

@denis-yuen denis-yuen changed the title toil experiment update toil and resurrect tests Nov 27, 2024
@denis-yuen denis-yuen marked this pull request as ready for review November 27, 2024 20:09
@denis-yuen denis-yuen requested review from a team, david4096, hyunnaye, svonworl and coverbeck and removed request for a team November 27, 2024 20:09
Copy link

sonarcloud bot commented Nov 28, 2024

@denis-yuen denis-yuen requested review from david4096 and removed request for david4096 December 3, 2024 20:50
@@ -35,9 +37,9 @@ public void checkForCWLDependencies(MetadataApi metadataApi) {
final ImmutablePair<String, String> pair1 = io.cwl.avro.Utilities
.executeCommand(Joiner.on(" ").join(Arrays.asList(s1)), false, com.google.common.base.Optional.absent(),
com.google.common.base.Optional.absent());
final String toilVersion = pair1.getValue().trim();
final String toilVersion = pair1.getKey().trim();
Copy link
Contributor

Choose a reason for hiding this comment

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

I had to go look up that Utilities.executeCommand() returns a pair with stdOut and stdErr. For code readability, suggest a comment and/or a record.

Also, Toil changed where the version is displayed to stdOut from stdErr?

Copy link
Member Author

@denis-yuen denis-yuen Dec 3, 2024

Choose a reason for hiding this comment

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

Yeah on the second point.
I'll add a ticket since executeCommand is overloaded and used in a bunch of places.
https://ucsc-cgl.atlassian.net/browse/SEAB-6828

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

Successfully merging this pull request may close these issues.

3 participants