Skip to content

Conversation

@emckee2006
Copy link
Contributor

No description provided.

Copy link
Contributor

@josemduarte josemduarte left a comment

Choose a reason for hiding this comment

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

Thanks! One comment about error handling

} catch (IOException | CompoundNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather throw the exception forward and let the caller handle it. Returning null means all callers have to handle the null and that they lose the ability to provide a good error message.

@josemduarte
Copy link
Contributor

Could you merge master into your branch? The tests should pass then. A problem with them was fixed in #871

@emckee2006
Copy link
Contributor Author

emckee2006 commented Apr 15, 2020 via email

@emckee2006
Copy link
Contributor Author

emckee2006 commented Apr 15, 2020 via email

@josemduarte
Copy link
Contributor

There seems to be an issue with the new test. See logs from travis, there's a timeout after running GenbankReaderTest

@emckee2006
Copy link
Contributor Author

emckee2006 commented Apr 19, 2020 via email

@emckee2006
Copy link
Contributor Author

How do i rerun Travis after adding a new commit? (or what is a better debugging mechanism here?)

@josemduarte
Copy link
Contributor

I've just triggered the travis tests again

@emckee2006
Copy link
Contributor Author

emckee2006 commented Apr 21, 2020 via email

@emckee2006
Copy link
Contributor Author

OK, it still hangs even if not executing my test...

@lafita
Copy link
Member

lafita commented Apr 22, 2020

I commented out the new test to verify that it is the cause. Is there an easy way to debug?

Can you try to run mvn install locally from the command line or using Maven Install in eclipse?


@Test
public void testSequenceStream() {
CheckableInputStream inStream = new CheckableInputStream(this.getClass().getResourceAsStream("/two-dnaseqs.gb"));
Copy link
Member

Choose a reason for hiding this comment

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

Did you also include this file in the test resources directory? It seems not to be in this PR

LinkedHashMap<String,S> sequences = new LinkedHashMap<>();
@SuppressWarnings("unchecked")
int i=0;
while(true) {
Copy link
Member

Choose a reason for hiding this comment

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

This is what is hanging the build. Because the stream returned is null (the file does not exist, see comment below), sequence is always null and this while loop never finishes.

The while loop is not needed anymore, simply take an action if the sequence is null.

@emckee2006
Copy link
Contributor Author

emckee2006 commented Apr 22, 2020 via email

@lafita
Copy link
Member

lafita commented Apr 22, 2020

True the file exists, but the while loop is not needed anymore and probably the one causing the timeout in travis. @emckee2006 does maven install work locally for you?

@emckee2006
Copy link
Contributor Author

emckee2006 commented Apr 22, 2020 via email

@emckee2006
Copy link
Contributor Author

This needs help... closing for now...

@emckee2006 emckee2006 closed this May 3, 2020
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