-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat(ingest): handle multiline string coercion #9484
Conversation
8d89056
to
97ea816
Compare
brew install java11 | ||
brew install --cask zulu8 | ||
# Install Java | ||
brew install openjdk@17 |
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.
This is different than what we're recommending in notion, does that matter?
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.
it should be fine as long as it's java 17
@@ -37,9 +37,9 @@ def fetch_urls( | |||
except Exception as e: | |||
if attempt < max_retries: | |||
print(f"Attempt {attempt + 1}/{max_retries}: {e}") | |||
time.sleep(retry_delay) | |||
time.sleep(retry_delay * 2**attempt) |
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.
Any reason we don't use requests
and its backoff capabilities? Doesn't really matter but might be nice if we ever refactor this
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.
We didn't want to set up a venv here, so we're using pure python without any external packages
processed_view_files = processed_view_map.setdefault( | ||
model.connection, set() | ||
) |
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.
So much nicer
assert v.b == "original" | ||
assert v.d1 == "deprecated" | ||
assert v.d2 == "deprecated" | ||
assert any(["d1 is deprecated" in warning for warning in get_global_warnings()]) | ||
assert any(["d2 is deprecated" in warning for warning in get_global_warnings()]) | ||
|
||
clear_global_warnings() | ||
|
||
|
||
def test_multiline_string_fixer(): |
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.
Can you add a test with a dash in the secret name?
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.
that will come in a follow up PR - this one doesn't fix that just yet
Checklist