-
Notifications
You must be signed in to change notification settings - Fork 62
Support functionalities to enhance task traceability with metadata for dependency search. #450
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
79a2881
WIP: End to implement the logic to gather the required task output path.
0cfe7ee
WIP: success to add output path in nest mode, but some other case sho…
3eee422
WIP: no ci apply.
ec3bf4f
feat: fix to pass labels and has_seen_keys.
22a69d0
feat: fix conflicts
08e3f59
CI: apply ruff and mypy
9b19a1c
feat: add implementation of nest mode.
accbf1d
feat: deal with kitagry comments.
6719f4d
feat: Remove CLI dependencies.
0bcc16c
feat: remove redundant statements.
5c41035
feat: change serialization expression for single FlattenableItems[Req…
0b951ab
CI: fix test and apply CI.
10795a2
feat: fix mypy error.
32b4343
feat: refactoring make _list_flatten inner function.
6f70a41
feat: fix nits miss and add __ prefix to avoid conflicts.
637f5da
feat: rename _list_flatten
b607926
Merge: fix conflicts.
TlexCypher a8059a1
Merge: fix conflicts.
TlexCypher 27b1abd
feat: convert map object to list, any iterable objects that would be …
TlexCypher 5ac1c4d
Merge remote-tracking branch 'origin/master' into feat/nestmode
TlexCypher f4479da
Merge remote-tracking branch 'origin/feat/nestmode' into feat/nestmode
TlexCypher e71833b
feat: add new line to end of param.ini
TlexCypher 46aabcf
feat: remove redundant expressions
TlexCypher 7bde3b0
Merge branch 'master' into feat/nestmode
hirosassa 4c44cea
feat: use yiled to make memory efficient and use functools.reduce to …
TlexCypher dd6a629
Merge remote-tracking branch 'origin/feat/nestmode' into feat/nestmode
TlexCypher d884c79
Merge branch 'master' into feat/nestmode
hirosassa f1418f8
feat: fix type of normalized_labeles_list
TlexCypher 6a1c4c2
Merge remote-tracking branch 'origin/feat/nestmode' into feat/nestmode
TlexCypher 0b06455
chore: change custom_labels type
kitagry 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[loggers] | ||
keys=root,luigi,luigi-interface,gokart | ||
|
||
[handlers] | ||
keys=stderrHandler | ||
|
||
[formatters] | ||
keys=simpleFormatter | ||
|
||
[logger_root] | ||
level=INFO | ||
handlers=stderrHandler | ||
|
||
[logger_gokart] | ||
level=INFO | ||
handlers=stderrHandler | ||
qualname=gokart | ||
propagate=0 | ||
|
||
[logger_luigi] | ||
level=INFO | ||
handlers=stderrHandler | ||
qualname=luigi | ||
propagate=0 | ||
|
||
[logger_luigi-interface] | ||
level=INFO | ||
handlers=stderrHandler | ||
qualname=luigi-interface | ||
propagate=0 | ||
|
||
[handler_stderrHandler] | ||
class=StreamHandler | ||
formatter=simpleFormatter | ||
args=(sys.stdout,) | ||
|
||
[formatter_simpleFormatter] | ||
format=level=%(levelname)s time=%(asctime)s name=%(name)s file=%(filename)s line=%(lineno)d message=%(message)s | ||
datefmt=%Y/%m/%d %H:%M:%S | ||
class=logging.Formatter |
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,7 @@ | ||
[TaskOnKart] | ||
workspace_directory=./resource | ||
local_temporary_directory=./resource/tmp | ||
|
||
[core] | ||
logging_conf_file=logging.ini | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class RequiredTaskOutput: | ||
task_name: str | ||
output_path: str | ||
|
||
def serialize(self) -> dict[str, str]: | ||
return {'__gokart_task_name': self.task_name, '__gokart_output_path': self.output_path} |
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
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.
[MUST] This code may fail, since it seems to assume that
label_value
is str.I prefer checking if it is str, and then check the length as,
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.
Thank you for reviewing my code!
In my opinion, type checking is not necessary, because
GCSObjectMetadataClient._normalize_labels
convert all values stored in dictionary into string.So,
label_value
definitely is string.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.
@TlexCypher
Then maybe the input
normalized_labels_list: list[dict[str, Any]]
should benormalized_labels_list: list[dict[str, str]]
?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.
@TlexCypher Colud you check this comment?
If you are confirmed that label_value is str, you should
str
instead ofAny
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 fixed here 0b06455