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

#11 sonar scanner 설정을 sonar-project.properties 에서 하도록 변경 #48

Merged
merged 40 commits into from
Nov 25, 2023

Conversation

chohanjoo
Copy link
Contributor

Changes

Reason for change

Detailed Description

mention

@always0ne

Resolves: #
See also: #

@chohanjoo chohanjoo self-assigned this Nov 12, 2023
Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

4 similar comments
Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

@chohanjoo chohanjoo closed this Nov 19, 2023
@chohanjoo chohanjoo reopened this Nov 19, 2023
Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

2 similar comments
Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

-Dsonar.pullrequest.github.repository=${{ github.repository }} \
-Dsonar.sources=api/src \
-Dsonar.java.binaries=api/build/classes \
-Dsonar.log.level=INFO \
Copy link
Contributor

Choose a reason for hiding this comment

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

이게 소나 큐브 프로젝트 프로퍼티로 옮겨지면 어떻게 되는건가요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sonar-scanner-action 이 sonar-project.properties 읽어 동일한 기능을 하게 됩니다.
기존 불필요한 설정값들이 있는 것 같아 필요한 것만 필터링하였는데요.
사용하면서 필요한 설정값을 추가하려고 합니다,

Copy link
Contributor

Choose a reason for hiding this comment

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

좋은 방향인거 같습니다.

@chohanjoo chohanjoo changed the title #11 sonar scanner 설정을 sonar-project.properties 에서 하도록 변경 #11 sonar scanner 설정을 sonar-project.properties 에서 하도록 변경 Nov 19, 2023
Copy link
Contributor

@ccxz84 ccxz84 left a comment

Choose a reason for hiding this comment

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

좋아요

-Dsonar.pullrequest.github.repository=${{ github.repository }} \
-Dsonar.sources=api/src \
-Dsonar.java.binaries=api/build/classes \
-Dsonar.log.level=INFO \
Copy link
Contributor

Choose a reason for hiding this comment

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

좋은 방향인거 같습니다.

GITHUB_TOKEN: ${{ secrets.TOKEN }} # Needed to get PR information, if any
run: ./gradlew jib --image=ghcr.io/${{ github.repository }}:${{ github.sha }} sonar --info
run: ./gradlew jib --image=ghcr.io/${{ github.repository }}:${{ github.sha }} --info

Choose a reason for hiding this comment

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

여기 jib로도 충분할거같은데 어떠신가요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

--image 옵션을 제거하니 아래 에러로 빌드가 실패합니다.
--info 옵션은 불필요해보여 제거하였습니다.

* What went wrong:
Execution failed for task ':api:jib'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Build image failed, perhaps you should make sure your credentials for 'registry-1.docker.io/library/api-unspecified' are set up correctly. See https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized for help

Copy link
Contributor Author

Choose a reason for hiding this comment

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

core 에서 image 설정해줘서 jib 로 충분하다고 말씀하신걸까요?

Choose a reason for hiding this comment

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

넵 혹시 플러그인 버전 올려보실래요?

Copy link
Contributor Author

@chohanjoo chohanjoo Nov 25, 2023

Choose a reason for hiding this comment

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

최신 core version 이랑 현 pr 기준 core version 이랑 변경사항이 커서 변경해야 할 사항이 많을 것 같습니다.

아래 pr 에서 core version 을 최신껄로 올렸는데요.
2개 pr 머지후에 다음 pr 로 반영해도 될까요? ㅎㅎ

#49

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

Copy link

📝 테스트 커버리지 리포트입니다

Overall Project 57.65% 🍏

There is no coverage information present for the Files changed

@chohanjoo chohanjoo merged commit f573c04 into main Nov 25, 2023
3 checks passed
@chohanjoo chohanjoo deleted the #11-test-coverage branch November 25, 2023 13:28
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.

3 participants