Skip to content
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

Merged
merged 11 commits into from
Sep 23, 2024
Merged

Pipeline generator steps #32

merged 11 commits into from
Sep 23, 2024

Conversation

khluu
Copy link
Collaborator

@khluu khluu commented Sep 19, 2024

Define step types and helper functions to help create step.

p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
P
Signed-off-by: kevin <[email protected]>
@khluu khluu requested review from simon-mo and aslonnie September 19, 2024 22:49
p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
@khluu khluu changed the base branch from main to khluu/pipeline_gen_utils September 19, 2024 23:07
Comment on lines 7 to 8
class TestStep(BaseModel):
"""This class represents a test step defined in the test configuration file."""
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator

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?

@khluu khluu requested a review from aslonnie September 20, 2024 19:26
@aslonnie
Copy link
Collaborator

there is a conflict on the requirements.txt file

Copy link
Collaborator

@aslonnie aslonnie left a 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]>
@khluu
Copy link
Collaborator Author

khluu commented Sep 21, 2024

done! I've removed the 2 classes that are not referenced in this PR yet, and also resolved conflict

@khluu khluu changed the base branch from khluu/pipeline_gen_utils to main September 21, 2024 00:55
@khluu khluu requested a review from aslonnie September 21, 2024 00:55
class BuildkiteBlockStep(BaseModel):
"""This class represents a block step in Buildkite format."""
block: str
depends_on: Optional[str] = "build"
Copy link
Collaborator

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"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 19 to 20
if char in ", ":
step_key += "-"
Copy link
Collaborator

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)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

p
Signed-off-by: kevin <[email protected]>
@khluu khluu merged commit 24f4deb into main Sep 23, 2024
1 check passed
@khluu khluu deleted the khluu/pipeline_gen_step branch October 9, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants