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

Remove unnecessary variables from Makefiles #20620

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kariya-mitsuru
Copy link

Comprehensive Summary of your change

  1. Makefile

    • Remove -e option since it is unnecessary when passing variables as command line arguments to make -f make/photon/Makefile. (The -e option is used to override variables defined in the Makefile with environment variables.)

    • Remove DEVFLAG and REGISTRYVERSION from make -f make/photon/Makefile command line arguments since they are unused in make/photon/Makefile.

    • Add TRIVYFLAG to make -f make/photon/Makefile command line argument since it is used in make/photon/Makefile. Strictly speaking, this argument is unnecessary, but it is better to have it to explicitly indicate that make/photon/Makefile also uses this variable.

    • Remove the variable definitions since the following variables are unused.

      • CONFIGPATH
      • CORE_PATH
      • DEVFLAG
      • DOCKERFILEPATH_COMMON
      • GOBUILD
      • GOBUILDMAKEPATH_EXPORTER
      • GOBUILDPATH_EXPORTER
      • GOCLEAN
      • GOCMD
      • GODEP
      • GOFMT
      • GOINSTALL
      • GOTEST
      • PORTAL_PATH
      • PREPAREPATH
      • SRCPATH
      • ZIPCMD
  2. make/photon/Makefile

    • Remove the variable definitions since the following variables are unused.

      • CORE_BINARYNAME
      • CORE_SOURCECODE
      • DOCKERFILENAME_POSTGRESQL
      • DOCKERFILEPATH_POSTGRESQL
      • DOCKERIMAGENAME_POSTGRESQL
      • DOCKERIMAGES
      • JOBSERVICEBINARYNAME
      • JOBSERVICESOURCECODE
      • POSTGRESQL
      • SEDCMD
      • SRCPATH
      • TOOLSPATH
      • WGET
    • Remove the variable definitions since the following variables are specified as command line arguments when executed from Makefile.

      • BASEIMAGENAMESPACE
      • IMAGENAMESPACE

Issue being fixed

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

1. Makefile

   - Remove -e option since it is unnecessary when passing variables as
     command line arguments to `make -f make/photon/Makefile`.
     (The -e option is used to override variables defined in the Makefile
     with environment variables.)

   - Remove DEVFLAG and REGISTRYVERSION from `make -f make/photon/Makefile`
     command line arguments since they are unused in make/photon/Makefile.

   - Add TRIVYFLAG to `make -f make/photon/Makefile` command line argument
     since it is used in make/photon/Makefile.
     Strictly speaking, this argument is unnecessary, but it is better to
     have it to explicitly indicate that make/photon/Makefile also uses
     this variable.

   - Remove the variable definitions since the following variables are unused.

     - CONFIGPATH
     - CORE_PATH
     - DEVFLAG
     - DOCKERFILEPATH_COMMON
     - GOBUILD
     - GOBUILDMAKEPATH_EXPORTER
     - GOBUILDPATH_EXPORTER
     - GOCLEAN
     - GOCMD
     - GODEP
     - GOFMT
     - GOINSTALL
     - GOTEST
     - PORTAL_PATH
     - PREPAREPATH
     - SRCPATH
     - ZIPCMD

2. make/photon/Makefile

   - Remove the variable definitions since the following variables are unused.

     - CORE_BINARYNAME
     - CORE_SOURCECODE
     - DOCKERFILENAME_POSTGRESQL
     - DOCKERFILEPATH_POSTGRESQL
     - DOCKERIMAGENAME_POSTGRESQL
     - DOCKERIMAGES
     - JOBSERVICEBINARYNAME
     - JOBSERVICESOURCECODE
     - POSTGRESQL
     - SEDCMD
     - SRCPATH
     - TOOLSPATH
     - WGET

   - Remove the variable definitions since the following variables are
     specified as command line arguments when executed from Makefile.

     - BASEIMAGENAMESPACE
     - IMAGENAMESPACE

Signed-off-by: Mitsuru Kariya <[email protected]>
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.22%. Comparing base (b7b8847) to head (f73906a).
Report is 230 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #20620      +/-   ##
==========================================
- Coverage   67.56%   66.22%   -1.35%     
==========================================
  Files         991     1045      +54     
  Lines      109181   113476    +4295     
  Branches     2719     2845     +126     
==========================================
+ Hits        73768    75144    +1376     
- Misses      31449    34227    +2778     
- Partials     3964     4105     +141     
Flag Coverage Δ
unittests 66.22% <ø> (-1.35%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 572 files with indirect coverage changes

Fix make argument to be executed in the recipe for build_standalone_db_migrator.

Signed-off-by: Mitsuru Kariya <[email protected]>
@kariya-mitsuru
Copy link
Author

Sorry, I realized I forgot to fix build_standalone_db_migrator target, so I fixed it and pushed.

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.

None yet

5 participants