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

chore: specify env tags for each branches #3071

Merged
merged 12 commits into from
Apr 1, 2022

Conversation

STRRL
Copy link
Member

@STRRL STRRL commented Mar 28, 2022

What problem does this PR solve?

close #3068

What's changed and how it works?

  • new file env-images.yaml for specifying the certain image tag required for current branch/context
  • new script ./hack/env-image-tag.sh for querying this file, usage: ./hack/env-image-tag.sh build-env, output: latest
  • related changes in makefile and GitHub action workflow

Related changes

  • Need to update chaos-mesh/website
  • Need to update Dashboard UI
  • Need to cheery-pick to release branches
    • release-2.1
    • release-2.0

Checklist

Tests

  • Unit test
  • E2E test
  • No code
  • Manual test (add steps below)

Side effects

  • Breaking backward compatibility

Release note

Please add a release note.

You can safely ignore this section if you don't think this PR needs a release note.

DCO

If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it:

git commit --amend --signoff
git push --force

Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
@STRRL STRRL added type/enhancement New feature or request rebuild-build-env-image rebuild build-env image in this PR rebuild-dev-env-image rebuild dev-env image in this PR needs-cherry-pick-release-2.1 labels Mar 28, 2022
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Mar 28, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Hexilee
  • cwen0

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot requested a review from cwen0 March 28, 2022 07:40
@STRRL STRRL changed the title chore: specify env tags within file chore: specify env tags for each branches Mar 28, 2022
@codecov
Copy link

codecov bot commented Mar 28, 2022

Codecov Report

Merging #3071 (3b72dc1) into master (ace51f9) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3071      +/-   ##
==========================================
- Coverage   38.07%   38.06%   -0.02%     
==========================================
  Files         105      105              
  Lines        9108     9108              
==========================================
- Hits         3468     3467       -1     
- Misses       5331     5332       +1     
  Partials      309      309              
Impacted Files Coverage Δ
pkg/workflow/controllers/deadline_reconciler.go 64.44% <0.00%> (-2.23%) ⬇️
pkg/selector/generic/mode.go 28.20% <0.00%> (+2.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ace51f9...3b72dc1. Read the comment docs.

hack/env-image-tag.sh Outdated Show resolved Hide resolved
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
hack/env-image-tag.sh Outdated Show resolved Hide resolved
Signed-off-by: STRRL <str_ruiling@outlook.com>
Copy link
Member

@Hexilee Hexilee left a comment

Choose a reason for hiding this comment

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

The yq told me 'Error: unknown command ".build-env.tag" for "yq"' when I run ./hack/env-image-tag.sh build-env.

Copy link
Member

@Hexilee Hexilee left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@cwen0 cwen0 left a comment

Choose a reason for hiding this comment

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

LGTM

@cwen0
Copy link
Member

cwen0 commented Mar 31, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 5ebf4c6

Signed-off-by: STRRL <str_ruiling@outlook.com>
@STRRL
Copy link
Member Author

STRRL commented Mar 31, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: e5cc659

@STRRL
Copy link
Member Author

STRRL commented Apr 1, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 9624cb2

@ti-chi-bot ti-chi-bot merged commit 96f979a into chaos-mesh:master Apr 1, 2022
@ti-srebot
Copy link
Contributor

cherry pick to release-2.1 failed

STRRL added a commit to STRRL/chaos-mesh that referenced this pull request Apr 2, 2022
* chore: specify env tags within file

Signed-off-by: STRRL <str_ruiling@outlook.com>

* chore: update GHA workflow

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: use PROJECT_DIR

Signed-off-by: STRRL <str_ruiling@outlook.com>

* refactor: remove useless cat

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: address the comments from liftbot

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: change e2e-helper repository

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: change chaos-mesh-e2e repository

Signed-off-by: STRRL <str_ruiling@outlook.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
@STRRL
Copy link
Member Author

STRRL commented Apr 2, 2022

cherry pick to release-2.1 failed

Manually cherry-pick in #3096

ti-chi-bot added a commit that referenced this pull request Apr 2, 2022
* chore: specify env tags for each branches (#3071)

* chore: specify env tags within file

Signed-off-by: STRRL <str_ruiling@outlook.com>

* chore: update GHA workflow

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: use PROJECT_DIR

Signed-off-by: STRRL <str_ruiling@outlook.com>

* refactor: remove useless cat

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: address the comments from liftbot

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: change e2e-helper repository

Signed-off-by: STRRL <str_ruiling@outlook.com>

* fix: change chaos-mesh-e2e repository

Signed-off-by: STRRL <str_ruiling@outlook.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>

* chore: update env image tags

Signed-off-by: STRRL <str_ruiling@outlook.com>

* chore: declare certain tag in makefile

Signed-off-by: STRRL <str_ruiling@outlook.com>

* chore: update makefile passthrough more env

Signed-off-by: STRRL <str_ruiling@outlook.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

We should provide dev-env:<branch> and build-env:<branch> for different branches
5 participants