-
Notifications
You must be signed in to change notification settings - Fork 56
rosie: re-enable Rosie Disco service #2985
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
Open
oliver-sanders
wants to merge
4
commits into
metomi:master
Choose a base branch
from
oliver-sanders:re-instate-rosie-disco
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4f918b8
rosie: re-enable Rosie Disco service
oliver-sanders 9fc3182
rosie lookup: add tests for pretty format and fix some issues
oliver-sanders 8cd95e6
actions: re-jig mac os tests
oliver-sanders af7ff0c
rosie disco: error if no DB configured
oliver-sanders File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| rosie: The `rosie disco` server has been restored restored to Rose 2. | ||
|
|
||
| It is now available as the pip package `rose[disco]` or the conda-forge package `metomi-rose`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,13 +38,13 @@ | |
| from pathlib import Path | ||
| import pwd | ||
| import signal | ||
| import sys | ||
| from time import sleep | ||
|
|
||
| import jinja2 | ||
| from tornado.ioloop import IOLoop, PeriodicCallback | ||
| import tornado.log | ||
| import tornado.web | ||
| import tornado.wsgi | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove residual remains of WSGI support. |
||
|
|
||
| from metomi.isodatetime.data import get_timepoint_from_seconds_since_unix_epoch | ||
| from metomi.rose import __version__ as ROSE_VERSION | ||
|
|
@@ -104,7 +104,13 @@ def __init__(self, service_root_mode=False, *args, **kwargs): | |
| ) | ||
|
|
||
| db_url_map = {} | ||
| for key, node in rose_conf.get(["rosie-db"]).value.items(): | ||
| rosie_db = rose_conf.get(["rosie-db"]) | ||
| if not rosie_db or not rosie_db.value: | ||
| sys.exit( | ||
| 'Please configure one or more rosie prefix in' | ||
| ' "rose.conf[rosie-db]".' | ||
| ) | ||
| for key, node in rosie_db.value.items(): | ||
| if key.startswith("db.") and key[3:]: | ||
| db_url_map[key[3:]] = node.value | ||
| self.db_url_map = db_url_map | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -402,7 +402,7 @@ rose_ws_init() { | |
| TEST_ROSE_WS_PORT="${PORT}" | ||
| if port_is_busy "${TEST_ROSE_WS_PORT}"; then | ||
| pass "${TEST_KEY}" | ||
| TEST_ROSE_WS_URL="http://${HOSTNAME}:${TEST_ROSE_WS_PORT}/${NS}-${UTIL}" | ||
| TEST_ROSE_WS_URL="http://$(hostname -f):${TEST_ROSE_WS_PORT}/${NS}-${UTIL}" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For VDI test compat. |
||
| else | ||
| fail "${TEST_KEY}" | ||
| rose_ws_kill | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Move rosie-only dependencies out of core dependencies: