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

Test: add tests for pkg/executor #37

Merged
merged 4 commits into from
Mar 20, 2023

Conversation

charlie0129
Copy link
Member

@charlie0129 charlie0129 commented Mar 17, 2023

Description of your changes

  • add tests for package pkg/executor, current test coverage 93%
  • refine executor logs
  • make executor.RunJobs synchronous
  • optimize exeutor shutdown logic (use context to shutdown instead of called manually)

Fixes #

I have:

  • Read and followed KubeVela's contribution process.
  • Add related tests.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
@FogDong FogDong merged commit c97d101 into kubevela:main Mar 20, 2023
semmet95 pushed a commit to semmet95/kube-trigger that referenced this pull request May 10, 2023
* Test: add tests

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* Test: add tests for executor

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* Test: add tests for executor

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* use for loop

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

---------

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Amit Singh <singhamitch@outlook.com>
semmet95 pushed a commit to semmet95/kube-trigger that referenced this pull request May 10, 2023
* Test: add tests

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* Test: add tests for executor

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* Test: add tests for executor

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* use for loop

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

---------

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Amit Singh <singhamitch@outlook.com>
semmet95 pushed a commit to semmet95/kube-trigger that referenced this pull request May 10, 2023
* Test: add tests

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* Test: add tests for executor

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* Test: add tests for executor

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

* use for loop

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>

---------

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
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.

2 participants