-
Notifications
You must be signed in to change notification settings - Fork 16
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
Pipeline generator steps #32
Conversation
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
scripts/pipeline_generator/step.py
Outdated
class TestStep(BaseModel): | ||
"""This class represents a test step defined in the test configuration file.""" |
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.
why are these in this PR? do you want to test maybe unmarshaling these data structures?
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 method that unmarshal them from the yaml file would be in the next PR
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.
then why is this checked in in this PR? this is not referenced in this PR anywhere?
there is a conflict on the |
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.
resolve the conflict? and maybe remove from this PR the data structures that are not referenced?
Signed-off-by: kevin <[email protected]>
done! I've removed the 2 classes that are not referenced in this PR yet, and also resolved conflict |
scripts/pipeline_generator/step.py
Outdated
class BuildkiteBlockStep(BaseModel): | ||
"""This class represents a block step in Buildkite format.""" | ||
block: str | ||
depends_on: Optional[str] = "build" |
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.
maybe declare a global constant for "build"
?
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.
done
scripts/pipeline_generator/step.py
Outdated
if char in ", ": | ||
step_key += "-" |
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.
maybe this should be like "if the last char was -
, just skip this char"? then you do not need the replace(", ", ",")
, and can more gracefully handle cases like ,,
or ,
(double spaces)?
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.
done
Signed-off-by: kevin <[email protected]>
Define step types and helper functions to help create step.