-
Notifications
You must be signed in to change notification settings - Fork 107
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
chore(make): reuse variables #1982
Conversation
WalkthroughThe changes involve minor formatting adjustments in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Makefile
participant BuildScript
User->>Makefile: Initiate build
Makefile->>BuildScript: Include build.mk
BuildScript->>BuildScript: Use TESTNAME and TESTAPP
BuildScript->>BuildScript: Set output file and image name
BuildScript-->>User: Build complete
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (2)
- Makefile (1 hunks)
- build/scripts/build.mk (4 hunks)
Additional comments not posted (8)
Makefile (2)
3-3
: LGTM!The removal of trailing space is a cosmetic change and does not impact functionality.
The code changes are approved.
6-6
: LGTM!The removal of trailing space is a cosmetic change and does not impact functionality.
The code changes are approved.
build/scripts/build.mk (6)
10-10
: LGTM!The introduction of the
TESTNAME
variable improves clarity by distinguishing between the test name and the application name.The code changes are approved.
11-11
: LGTM!The introduction of the
TESTAPP
variable aligns with the new naming conventions and enhances clarity.The code changes are approved.
13-13
: LGTM!The update to use
$(TESTAPP)
instead of the previously hardcodedTESTAPP_DIR
promotes consistency and reduces potential errors.The code changes are approved.
57-58
: LGTM!The update to use
$(TESTNAME)
and$(TESTAPP)
instead of the static stringbeacond
allows for greater flexibility in the build process.The code changes are approved.
86-86
: LGTM!The update to use
$(OUT_DIR)/$(TESTAPP)
ensures that the output binary reflects the new naming conventions.The code changes are approved.
100-100
: LGTM!The update to use
$(TESTAPP)
enhances the clarity and maintainability of the Docker image naming.The code changes are approved.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1982 +/- ##
=======================================
Coverage 21.83% 21.83%
=======================================
Files 359 359
Lines 15971 15971
Branches 21 21
=======================================
Hits 3488 3488
Misses 12362 12362
Partials 121 121 |
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (2)
- build/scripts/build.mk (5 hunks)
- build/scripts/testing.mk (1 hunks)
Additional comments not posted (7)
build/scripts/build.mk (6)
10-10
: LGTM!The introduction of the
TESTNAME
variable improves clarity.The code changes are approved.
11-11
: LGTM!The introduction of the
TESTAPP
variable improves clarity.The code changes are approved.
13-13
: LGTM!Updating
TESTAPP_CMD_DIR
to referenceTESTAPP
ensures consistency and reduces the risk of errors.The code changes are approved.
57-58
: LGTM!Updating
ldflags
to use$(TESTNAME)
and$(TESTAPP)
enhances flexibility and maintainability.The code changes are approved.
74-74
: LGTM!Including
-trimpath
inBUILD_FLAGS
helps reduce the size of the binary by removing file system paths.The code changes are approved.
86-86
: LGTM!Updating the
build
target output andIMAGE_NAME
to use$(TESTAPP)
ensures consistency with the new variable naming conventions.The code changes are approved.
Also applies to: 100-100
build/scripts/testing.mk (1)
263-263
: LGTM!Removing the unnecessary trailing space enhances the clarity and correctness of the command.
The code changes are approved.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (2)
- build/scripts/build.mk (5 hunks)
- build/scripts/testing.mk (1 hunks)
Additional comments not posted (7)
build/scripts/build.mk (6)
10-10
: LGTM!The introduction of the
TESTNAME
variable improves clarity.The code changes are approved.
11-11
: LGTM!The introduction of the
TESTAPP
variable improves clarity.The code changes are approved.
13-13
: LGTM!Updating
TESTAPP_CMD_DIR
to referenceTESTAPP
ensures consistency and reduces the risk of errors.The code changes are approved.
57-58
: LGTM!Updating
ldflags
to use$(TESTNAME)
and$(TESTAPP)
enhances flexibility and maintainability.The code changes are approved.
74-74
: LGTM!Including
-trimpath
inBUILD_FLAGS
helps reduce the size of the binary by removing file system paths.The code changes are approved.
86-86
: LGTM!Updating the
build
target output andIMAGE_NAME
to use$(TESTAPP)
ensures consistency with the new variable naming conventions.The code changes are approved.
Also applies to: 100-100
build/scripts/testing.mk (1)
263-263
: LGTM!Removing the unnecessary trailing space enhances the clarity and correctness of the command.
The code changes are approved.
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.
lgtmlgtmlgtm
Summary by CodeRabbit