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

[8/n][pipeline-gen] Add method to generate build step #48

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

khluu
Copy link
Collaborator

@khluu khluu commented Oct 22, 2024

  • Add method to generate build step based on commit, container registry and image.

p
Signed-off-by: kevin <[email protected]>
@khluu khluu requested a review from aslonnie October 22, 2024 20:16
@aslonnie
Copy link
Collaborator

is this for review? could you add a PR description maybe?

@@ -0,0 +1,26 @@
from typing import List

def get_build_commands(container_registry: str, buildkite_commit: str, container_image: str) -> List[str]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

any unit test? or is this so simple that does not require one?

maybe we should have some form of integration test to test these commands.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's just replacing placeholders for container registry, container image, and commit so I don't think unit test is needed here.

@khluu khluu requested a review from aslonnie October 22, 2024 22:38
f"--build-arg USE_SCCACHE=1 "
f"--tag {container_image} "
f"--target test "
f"--progress plain ."
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you leave a todo here to not using . to include everything as the build context?

p
Signed-off-by: kevin <[email protected]>
@khluu khluu merged commit cbcccde into main Oct 29, 2024
2 checks passed
@khluu khluu deleted the khluu/pipeline_gen_build branch October 29, 2024 18:44
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