-
Notifications
You must be signed in to change notification settings - Fork 2
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
Trent/image ci #25
Trent/image ci #25
Conversation
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 code overall seems well-structured and adheres to the industry standards. It is divided into jobs and uses sensible concurrency settings. However, there are certain points that need to be addressed for better efficiency and readability.
.github/workflows/test-api-ci.yml
Outdated
docker_path: integration-tests/test-api/Dockerfile | ||
push: | ||
name: Build API Test | ||
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }} |
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.
This expression seems too restrictive. For example, it strictly checks for the repository owner to be 'codecov'. If the repository is forked, the owner would change and this would stop working. Removing ' && github.repository_owner == 'codecov'' might improve flexibility.
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.
@eliatcodecov Medium helpful comment. The bot is probably right here.
Makefile
Outdated
export DOCKER_BUILDKIT := 1 | ||
|
||
build.${IMAGE_NAME}: | ||
docker build -f ${DOCKER_PATH} . -t ${dockerhub_image}:latest \ |
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 variable 'sha', 'build_date', 'release_version' are not defined in Makefile but are used. These need to be defined or managed effectively.
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.
@eliatcodecov actually helpful comment!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
☔ View full report in Codecov by Sentry. |
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.
CodecovAI submitted a new review for cf2afca
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.
CodecovAI submitted a new review for cf87942
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.
CodecovAI submitted a new review for 40a0f10
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.
CodecovAI submitted a new review for 363aba5
Makefile
Outdated
OS_NAME := $(shell uname -s | tr A-Z a-z) | ||
BUILD_PLATFORM := | ||
ifeq ($(OS_NAME),darwin) | ||
BUILD_PLATFORM := arm64 |
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 BUILD_PLATFORM is being set to 'arm64' for Darwin systems. However, not all Darwin systems are arm64, some are x86_64 (Intel). Consider a more comprehensive approach to accurately determine the architecture.
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.
@eliatcodecov this is actually a really good one
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.
CodecovAI submitted a new review for 50be7c2
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.
CodecovAI submitted a new review for 5c45bd7
push: | ||
name: Push API Test | ||
if: github.repository_owner == 'codecov' | ||
uses: codecov/gha-workflows/.github/workflows/[email protected] |
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.
Like in the above file, the 'secrets' keyword does not seem to be used correctly. Secrets can be accessed using the secrets
context but need to be passed to the env
attribute.
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.
@eliatcodecov The bot is getting snarky
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.
CodecovAI submitted a new review for 9951331
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 thank you 🚀
Description
Add CI for test-api image
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.