-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Clean-up] Remove references to terminusdb
#542
Conversation
Tests are failing. |
Thanks, @PeopleMakeCulture. I am looking at the recent runs of the failing workflow. It passed when it was run on the latest commit on As an experiment, I will re-run it on the tip of the I'll report back with the result. Update: It still passes on the tip of the |
Oops—my bad! The failures on the https://github.com/microbiomedata/nmdc-runtime/tree/523-queries-run-cmd-response-not-ok branch are pytest failures, not failures to connect to the FastAPI container. They just happen to occur as part of the same GHA workflow. |
I got a clue by checking this branch out locally and running 2024-05-30 16:27:06 INFO: Will watch for changes in these directories: ['/code']
2024-05-30 16:27:06 INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2024-05-30 16:27:06 INFO: Started reloader process [1] using WatchFiles
2024-05-30 16:27:14 Process SpawnProcess-1:
2024-05-30 16:27:14 Traceback (most recent call last):
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
2024-05-30 16:27:14 self.run()
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run
2024-05-30 16:27:14 self._target(*self._args, **self._kwargs)
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 78, in subprocess_started
2024-05-30 16:27:14 target(sockets=sockets)
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 62, in run
2024-05-30 16:27:14 return asyncio.run(self.serve(sockets=sockets))
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
2024-05-30 16:27:14 return loop.run_until_complete(main)
2024-05-30 16:27:14 File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 69, in serve
2024-05-30 16:27:14 config.load()
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/site-packages/uvicorn/config.py", line 458, in load
2024-05-30 16:27:14 self.loaded_app = import_from_string(self.app)
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
2024-05-30 16:27:14 module = importlib.import_module(module_str)
2024-05-30 16:27:14 File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
2024-05-30 16:27:14 return _bootstrap._gcd_import(name[level:], package, level)
2024-05-30 16:27:14 File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2024-05-30 16:27:14 File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2024-05-30 16:27:14 File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
2024-05-30 16:27:14 File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
2024-05-30 16:27:14 File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2024-05-30 16:27:14 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-05-30 16:27:14 File "/code/nmdc_runtime/api/main.py", line 29, in <module>
2024-05-30 16:27:14 from nmdc_runtime.api.endpoints import (
2024-05-30 16:27:14 File "/code/nmdc_runtime/api/endpoints/metadata.py", line 29, in <module>
2024-05-30 16:27:14 from nmdc_runtime.site.repository import repo, run_config_frozen__normal_env
2024-05-30 16:27:14 File "/code/nmdc_runtime/site/repository.py", line 27, in <module>
2024-05-30 16:27:14 from nmdc_runtime.site.graphs import (
2024-05-30 16:27:14 File "/code/nmdc_runtime/site/graphs.py", line 3, in <module>
2024-05-30 16:27:14 from nmdc_runtime.site.ops import (
2024-05-30 16:27:14 ImportError: cannot import name 'update_schema' from 'nmdc_runtime.site.ops' (/code/nmdc_runtime/site/ops.py) For reference, here's what my environment has in it: $ git log -1
commit ecb227d78a5465ab445df58ab067a4640bfadfc9 (HEAD -> 513-remove-tdb, origin/513-remove-tdb)
Author: J*** <j***@************>
Date: Thu May 30 15:22:21 2024 -0400
cleanup readme
$ git status
On branch 513-remove-tdb
Your branch is up to date with 'origin/513-remove-tdb'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: nmdc_runtime/site/translation/neon_benthic_translator.py
modified: nmdc_runtime/site/translation/neon_surface_water_translator.py
no changes added to commit (use "git add" and/or "git commit -a")
$ |
@PeopleMakeCulture, here's a patch that fixes the $ git diff nmdc_runtime/site/graphs.py
diff --git a/nmdc_runtime/site/graphs.py b/nmdc_runtime/site/graphs.py
index 09c5d51..5b21ac0 100644
--- a/nmdc_runtime/site/graphs.py
+++ b/nmdc_runtime/site/graphs.py
@@ -22,7 +22,6 @@ from nmdc_runtime.site.ops import (
hello,
mongo_stats,
submit_metadata_to_db,
- update_schema,
filter_ops_undone_expired,
construct_jobs,
maybe_post_jobs, I don't know whether that's the same underlying problem that is affecting the GHA workflow. |
@eecavanna thanks for pointing out the dependency on |
@eecavanna That worked! Could you review/merge the PR and remove the terminus dependencies in rancher? |
Great! I'll review the PR now. |
Looks like a lot of files changed due to formatting changes only. I wonder whether this situation could be avoided in the future by running |
I'm having a hard time reviewing this PR. @PeopleMakeCulture, will you make a new version of this PR that doesn't have the formatting-only changes in it? I don't know how time-consuming that would be at this point. I think it can be done by |
I just realized |
This reverts commit 6f01714.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am comfortable with this being merged in. Thanks, @PeopleMakeCulture, for implementing this!
P.S. To summarize my past few comments: I reverted the run black
commit in an attempt to make the overall diff easier for me to read. The formatting of files unrelated to removing TerminusDB can be performed in a separate PR (that is what I prefer).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great!
Description
Removes references to terminusdb service not in use.
Fixes #513
Type of change
Clean-up
How Has This Been Tested?
None except CI Pipeline
black nmdc_runtime/
?)docs/
and in https://github.com/microbiomedata/NMDC_documentation/?)