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

[Refactoring] Build Script in terms of TC #279

Merged
merged 1 commit into from Mar 2, 2021

Conversation

tiokim
Copy link
Contributor

@tiokim tiokim commented Feb 25, 2021

Signed-off-by: Taewan Kim t25.kim@samsung.com

Description

Refactor build.sh file in terms of TC in order to reduce LOC

Type of change

  • Code cleanup/refactoring
  • This change requires a documentation update

How Has This Been Tested?

Run TC with ./build.sh file.

  • $ ./build.sh test
  • $ ./build.sh test ./internal/common/commandvalidator/

Test Configuration:

  • Firmware version: Ubuntu 18.04
  • Hardware: x86-64
  • Edge Orchestration Release: Coconut

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@tiokim tiokim added the refactoring Any tasks and issues w.r.t. the code refactoring label Feb 25, 2021
@tiokim tiokim added this to In progress in Refactoring via automation Feb 25, 2021
@tiokim tiokim self-assigned this Feb 25, 2021
@tiokim tiokim changed the title [WIP] Refactoring Build Script Refactoring Build Script Feb 25, 2021
@tiokim tiokim changed the title Refactoring Build Script [Refactoring] Revise Build Script in terms of TC Feb 25, 2021
Copy link
Contributor

@MoonkiHong MoonkiHong left a comment

Choose a reason for hiding this comment

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

This is great for improving visibility from the build script. LGTM.

Refactoring automation moved this from In progress to Reviewer approved Feb 25, 2021
@tiokim tiokim changed the title [Refactoring] Revise Build Script in terms of TC [WIP][Refactoring] Revise Build Script in terms of TC Feb 26, 2021
- Remove PKG_LIST
- Use relative path to run TC

Signed-off-by: Taewan Kim <t25.kim@samsung.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 26, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@tiokim tiokim changed the title [WIP][Refactoring] Revise Build Script in terms of TC [Refactoring] Build Script in terms of TC Feb 26, 2021
Copy link
Contributor

@MoonkiHong MoonkiHong left a comment

Choose a reason for hiding this comment

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

+1! 😄

@suresh-lc
Copy link
Contributor

Description can be little more for any third person to understand like why we do the change and how. Understand we are fixing an issue #278 . Later date when we check the PR, better description would be good and we need not to go to issue also.

@MoonkiHong
Copy link
Contributor

Description can be little more for any third person to understand like why we do the change and how. Understand we are fixing an issue #278 . Later date when we check the PR, better description would be good and we need not to go to issue also.

Please see 65a801d. Seems it has an enough description in the commit message. Any issue from you?

@tiokim
Copy link
Contributor Author

tiokim commented Mar 2, 2021

Description can be little more for any third person to understand like why we do the change and how. Understand we are fixing an issue #278 . Later date when we check the PR, better description would be good and we need not to go to issue also.

Thank you for the review!
I will write PR description more specifically from next time!

@suresh-lc
Copy link
Contributor

Description can be little more for any third person to understand like why we do the change and how. Understand we are fixing an issue #278 . Later date when we check the PR, better description would be good and we need not to go to issue also.

Please see 65a801d. Seems it has an enough description in the commit message. Any issue from you?

Had checked the message. Why removal of PKG_LST can be little more explained is what I wanted to say. Was following : "We explain our solution and why we are doing what we are doing, as opposed to describing what we are doing."

@MoonkiHong
Copy link
Contributor

Why removal of PKG_LST can be little more explained is what I wanted to say.

@suresh-lc It is well explained with the linked issue #278. Plus there is a description why need this commit (reduce of LoC). In addition to that, I would like to recommend you to also provide your rectified recommendation if you truly want an improved revision from contributors, otherwise, the discussion will go to a lot of chats and overheads.

@suresh-lc
Copy link
Contributor

Why removal of PKG_LST can be little more explained is what I wanted to say.

@suresh-lc It is well explained with the linked issue #278. Plus there is a description why need this commit (reduce of LoC). In addition to that, I would like to recommend you to also provide your rectified recommendation if you truly want an improved revision from contributors, otherwise, the discussion will go to a lot of chats and overheads.

@MoonkiHong : thanks for your comments. Ya had mentioned that we are resolving the issue #278 . Since wanted to improve the contributions , had given the comment and not to just have chats, guess my intention was not rightly conveyed, sorry for that.

@suresh-lc
Copy link
Contributor

Why removal of PKG_LST can be little more explained is what I wanted to say.

@suresh-lc It is well explained with the linked issue #278. Plus there is a description why need this commit (reduce of LoC). In addition to that, I would like to recommend you to also provide your rectified recommendation if you truly want an improved revision from contributors, otherwise, the discussion will go to a lot of chats and overheads.

@MoonkiHong : thanks for your comments. Ya had mentioned that we are resolving the issue #278 . Since wanted to improve the contributions , had given the comment and not to just have chats, guess my intention was not rightly conveyed, sorry for that.

The "reduce of LoC" has been added and it looks fine now. This gives why we are doing the change and hence it looks better.

Copy link
Contributor

@suresh-lc suresh-lc left a comment

Choose a reason for hiding this comment

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

LGTM

@tiokim
Copy link
Contributor Author

tiokim commented Mar 2, 2021

Description can be little more for any third person to understand like why we do the change and how. Understand we are fixing an issue #278 . Later date when we check the PR, better description would be good and we need not to go to issue also.

Please see 65a801d. Seems it has an enough description in the commit message. Any issue from you?

Had checked the message. Why removal of PKG_LST can be little more explained is what I wanted to say. Was following : "We explain our solution and why we are doing what we are doing, as opposed to describing what we are doing."

Why removal of PKG_LST can be little more explained is what I wanted to say.

@suresh-lc It is well explained with the linked issue #278. Plus there is a description why need this commit (reduce of LoC). In addition to that, I would like to recommend you to also provide your rectified recommendation if you truly want an improved revision from contributors, otherwise, the discussion will go to a lot of chats and overheads.

@MoonkiHong : thanks for your comments. Ya had mentioned that we are resolving the issue #278 . Since wanted to improve the contributions , had given the comment and not to just have chats, guess my intention was not rightly conveyed, sorry for that.

@suresh-lc Thank you for sharing your idea.
I thought PKG_LIST is not necessary because developers can run TC without PKG_LIST and maintaining PKG_LIST needs many efforts without worth (It only consumes LoC).
If someone needs the code, I can leave the code as is.
Please tell us without hesitation if you think we need to maintain some code!

@MoonkiHong MoonkiHong merged commit bb49416 into lf-edge:master Mar 2, 2021
Refactoring automation moved this from Reviewer approved to Done Mar 2, 2021
@tiokim tiokim deleted the buildscript_refactoring branch March 2, 2021 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Any tasks and issues w.r.t. the code refactoring
Projects
Development

Successfully merging this pull request may close these issues.

[Refactoring] Build script
4 participants