-
Notifications
You must be signed in to change notification settings - Fork 777
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
shu/maksimi/record logs new #1399
Closed
Closed
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
79e5763
Record log entries into context
satansdeer c3cbf4b
Add log field to context
satansdeer f3debf5
Add SKYVERN_LOG artifact type
satansdeer c1e7ff6
Add skyvern log tab on the frontend
satansdeer b1f14c6
Add SkyvernLogEncoder to handle non-serializable objects
satansdeer b2cb9c4
Record logs to an artifact
satansdeer eb6fc3d
Record only logs corresponding to a step
satansdeer 57cd772
Recover empty line
satansdeer 419e12b
Add text log encoder
satansdeer ddbc340
re-enable upload block (#1324)
wintonzheng f313326
remove no latest screenshot error log (#1325)
LawyZheng 9b35651
Put a guard in workflow save error detail (#1326)
wintonzheng 2d90fed
urlencode download suffix (#1327)
LawyZheng be0e817
wait for downloads to be done (#1328)
LawyZheng 5ee8c3b
Skyvern Forms UI (#1330)
wintonzheng f8a6b58
Fix a navigation bug with saved tasks (#1331)
wintonzheng 8bf863c
workflow run block (#1332)
wintonzheng 5d32d53
forloop metadata variables (#1334)
LawyZheng 3c37a4a
auto prepend scheme to url (#1335)
LawyZheng 1aa1146
rename GEMINI_FLUSH->GEMINI_FLASH (#1333)
nmfisher f3bb2fe
bump navigation max retry to 5 (#1336)
LawyZheng 6606fba
add workflow_run_id column to artifacts + ObserverCruise and Observer…
wintonzheng aabc0fc
add observer cruise id to artifacts table (#1337)
wintonzheng b83c648
ObserverThought reproduce migration script (#1338)
wintonzheng 40e9dd3
Import structlog
satansdeer 5c8488d
Define build_log_uri method
satansdeer 127b8a6
Merge main
satansdeer 4742fc4
Extract save logs functions
satansdeer 974b37e
Pass step_id to log artifact methods
satansdeer d48f792
Define get_artifact_by_entity_id
satansdeer f57c7b6
Reuse log artifacts when saving
satansdeer c8274c3
Introduce get artifacts by entity id handler
satansdeer 3ff49cb
Get step artifacts using entity id handler
satansdeer c3ce7d3
Remove logs
satansdeer 72b3f15
Record workflow run logs
satansdeer aac781f
Save task logs
satansdeer ff86b52
Merge branch 'main' into maksimi/record-logs
satansdeer a86d81d
Remove print
satansdeer 0f0633f
Merge main
satansdeer 727dd7e
Revert change to InvalidUrl type
satansdeer 2312281
Add complete_action.action_order back
satansdeer d66e67b
Add with_skyvern_context decorator
satansdeer 2cf5f69
Merge branch 'main' into shu/maksimi/record-logs-new
wintonzheng 63829fa
address typing
wintonzheng 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 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ class SkyvernContext: | |
max_steps_override: int | None = None | ||
tz_info: ZoneInfo | None = None | ||
totp_codes: dict[str, str | None] = field(default_factory=dict) | ||
log: list[dict] = field(default_factory=list) | ||
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. Consider using a structured log entry class for the |
||
|
||
def __repr__(self) -> str: | ||
return f"SkyvernContext(request_id={self.request_id}, organization_id={self.organization_id}, task_id={self.task_id}, workflow_id={self.workflow_id}, workflow_run_id={self.workflow_run_id}, max_steps_override={self.max_steps_override})" | ||
|
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.
The
__getitem__
method should handle cases where the attribute does not exist to avoid runtime errors. Consider usinggetattr(self, key, default)
to provide a default value if the attribute is not found.