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

Bug: Sync subclass: ancestor inconsistencies #406

Closed
3 tasks
joeflack4 opened this issue Jan 28, 2024 · 4 comments
Closed
3 tasks

Bug: Sync subclass: ancestor inconsistencies #406

joeflack4 opened this issue Jan 28, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@joeflack4
Copy link
Contributor

joeflack4 commented Jan 28, 2024

Overview

Nico was trying to fix some bugs in the pipeline (#403) when he noticed an issue regarding ancestor inconsistencies. Basically, we expect that ancestor() edges should give the same results as the indirect edges + direct edges. But we're getting an error where that is not the case.

Sub-tasks

3. Change logger to print info?

Details

This is unrelated to this issue, but basically I was expecting logging.info() to print, but it is not. It would help me to debug if this would print. Should we print these? Should we change these to logging.debug() and maybe I change my code so that if I'm running what I typically run in the debugger, run_defaults(), it sets the logging to debug mode?

Shamefully I don't have enough experience with logging. I tried to fix with some suggestions here, but most of what I tried didn't work (nor did ChatGPT work). One suggestion did work, but it ended up printing everything twice.

@joeflack4 joeflack4 linked a pull request Jan 28, 2024 that will close this issue
@joeflack4
Copy link
Contributor Author

joeflack4 commented Jan 29, 2024

@matentzn Frustratingly, I can't replicate your issue. I probably screwed up somewhere along the way. Maybe you can figure it out? Here's what I tried.

Details

What I did

Setup 1: My current mondo-ingest clone

  1. Branch off of your reinstate-sync PR
  2. Make new branch / PR bug-sync-ancestor
  3. Add %.db bugfix I suggested. Otherwise it was erroring out for me as expected.
  4. rm src/ontology/reports/*subclass*
  5. Deleted and remade subclass prereqs tmp/mondo-ingest.db tmp/mondo.db tmp/mondo.sssom.tsv`
  • Pretty sure I did this without also adding IMP=false COMP=false MIR=false. I know at least they changed somehow because I backed them up first and I just checked md5 and they are different.
  1. Tried running in both (i) debugger, and (ii) through ODK with IMP=false COMP=false MIR=false

Setup 2: Fresh mondo-ingest clone

  1. Fresh git clone
  2. Check out my bug-sync-ancestor branch (with bugfix in step (3) above) from 'setup 1'.
  3. rm src/ontology/reports/*subclass*
  4. Ran just through ODK sh run.sh make sync

Questions

  1. Can you tell me anything that would help me replicate your issue?
  2. What source was running when that error happened, if you remember?

@joeflack4 joeflack4 added the bug Something isn't working label Jan 29, 2024
@joeflack4 joeflack4 self-assigned this Jan 29, 2024
@matentzn
Copy link
Member

I will rerun it again now and see if it was a de-synchronised issue on my end.. I noticed another issue which I caused (missing pip install). So if all goes well, we can just merge this and we are good again!

@joeflack4 joeflack4 assigned matentzn and unassigned joeflack4 Feb 8, 2024
@joeflack4
Copy link
Contributor Author

@matentzn Assigned this one to you now! If you re run and there's no issue feel free to close.

@matentzn
Copy link
Member

matentzn commented Feb 8, 2024

Yes this was fixed a few PRs ago! Thanks for ping, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants