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

Trent/image ci #25

Merged
merged 17 commits into from
Dec 12, 2023
Merged

Trent/image ci #25

merged 17 commits into from
Dec 12, 2023

Conversation

trent-codecov
Copy link
Contributor

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.

@trent-codecov trent-codecov marked this pull request as draft December 9, 2023 18:19
Copy link

@codecov codecov bot left a 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 Show resolved Hide resolved
.github/workflows/test-api-ci.yml Outdated Show resolved Hide resolved
.github/workflows/test-api-ci.yml Outdated Show resolved Hide resolved
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' }}
Copy link

@codecov codecov bot Dec 9, 2023

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.

Copy link
Contributor Author

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 \
Copy link

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eliatcodecov actually helpful comment!

Makefile Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7fcb70b) 85.81% compared to head (9951331) 85.81%.

Additional details and impacted files
Components Coverage Δ
Plugin core 96.34% <ø> (ø)
Rollup plugin 7.14% <ø> (ø)
Vite plugin 7.14% <ø> (ø)
Webpack plugin 9.30% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@codecov codecov bot left a 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

.github/workflows/test-api-ci.yml Outdated Show resolved Hide resolved
.github/workflows/test-api-ci.yml Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
.github/workflows/test-api-ci.yml Show resolved Hide resolved
Copy link

@codecov codecov bot left a 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

.github/workflows/test-api-ci.yml Show resolved Hide resolved
.github/workflows/test-api-ci.yml Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Copy link

@codecov codecov bot left a 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

.github/workflows/test-api-ci.yml Show resolved Hide resolved
.github/workflows/test-api-ci.yml Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
integration-tests/test-api/Dockerfile Outdated Show resolved Hide resolved
Copy link

@codecov codecov bot left a 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

integration-tests/test-api/Dockerfile Show resolved Hide resolved
Makefile Outdated
OS_NAME := $(shell uname -s | tr A-Z a-z)
BUILD_PLATFORM :=
ifeq ($(OS_NAME),darwin)
BUILD_PLATFORM := arm64
Copy link

@codecov codecov bot Dec 9, 2023

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.

Copy link
Contributor Author

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

Makefile Outdated Show resolved Hide resolved
Copy link

@codecov codecov bot left a 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

.github/workflows/test-api-ci.yml Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
integration-tests/test-api/Dockerfile Show resolved Hide resolved
Makefile Show resolved Hide resolved
Copy link

@codecov codecov bot left a 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]
Copy link

@codecov codecov bot Dec 9, 2023

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.

Copy link
Contributor Author

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

Makefile Show resolved Hide resolved
integration-tests/test-api/Dockerfile Show resolved Hide resolved
Copy link

@codecov codecov bot left a 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

Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
.github/workflows/test-api-push.yml Show resolved Hide resolved
@trent-codecov trent-codecov marked this pull request as ready for review December 9, 2023 18:59
Copy link
Collaborator

@nicholas-codecov nicholas-codecov left a 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 🚀

@trent-codecov trent-codecov merged commit 0160343 into main Dec 12, 2023
13 checks passed
@trent-codecov trent-codecov deleted the trent/image-ci branch December 12, 2023 17:24
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