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

Avoid assertion error crashes during import #4829

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

ao508
Copy link
Contributor

@ao508 ao508 commented Sep 17, 2018

Throws exception when a sample ID is not known to database AND is not a normal sample. Otherwise, assertion failure causes importer to crash and does not log the issue.

Signed-off-by: Angelica Ochoa [email protected]

Checks

  • Runs on Heroku.
  • Follows 7 rules of great commit messages. For most PRs a single commit should suffice, in some cases multiple topical commits can be useful. During review it is ok to see tiny commits (e.g. Fix reviewer comments), but right before the code gets merged to master or rc branch, any such commits should be squashed since they are useless to the other developers. Definitely avoid merge commits, use rebase instead.
  • Follows the Google Style Guide.
  • If this is a feature, the PR is to rc. If this is a bug fix, the PR is to master.

@ao508 ao508 force-pushed the avoid-assertion-failures branch 2 times, most recently from 140437c to 92e229d Compare September 17, 2018 20:20
@ao508
Copy link
Contributor Author

ao508 commented Sep 17, 2018

@mandawilson @averyniceday @sheridancbio I recommend viewing the diff without the whitespace changes

@ao508 ao508 force-pushed the avoid-assertion-failures branch 6 times, most recently from 3263520 to bbc2e37 Compare September 18, 2018 20:09
Throws exception when a sample ID is not known to database AND is not a normal sample. Otherwise, assertion failure causes importer to crash and does not log the issue.

Signed-off-by: Angelica Ochoa <[email protected]>
Copy link
Contributor

@sheridancbio sheridancbio left a comment

Choose a reason for hiding this comment

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

Great. This allows exceptions to be caught be a client java application (such as the mskcc importer), rather than having AssertionErrors terminate the client program.

  • also : very glad that github offers the "Hide Whitespace Changes" option when doing PR review 👏

@@ -56,7 +56,7 @@
public static final String CNA_VALUE_ZERO = "0";
private HashSet<Long> importSetOfGenes = new HashSet<Long>();
private HashSet<Integer> importedGeneticEntitySet = new HashSet<>();
private File mutationFile;
private File dataFile;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@sheridancbio sheridancbio added minor pipeline relates to the data validation and loading pipeline master branch applies to the `master` bugfix branch importer and removed ready to review labels Sep 19, 2018
@sheridancbio sheridancbio merged commit 3c19122 into cBioPortal:master Sep 19, 2018
@ao508 ao508 deleted the avoid-assertion-failures branch July 3, 2019 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
importer master branch applies to the `master` bugfix branch minor pipeline relates to the data validation and loading pipeline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants