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

Api handler test respond activity task failed alternate #5980

Conversation

ibarrajo
Copy link
Contributor

@ibarrajo ibarrajo commented May 7, 2024

What changed?
Adding test for TestRespondActivityTaskFailed which can be expanded into code paths other than happy-path. Provided test for probing for an error when workflows are shutting down.

This is the alternate test to: #5979

Why?
increasing code coverage

How did you test it?
ran it locally

Potential risks
no changes to functionality

Release notes

Documentation Changes

}

func TestRespondActivityTaskFailed(t *testing.T) {

Copy link
Member

Choose a reason for hiding this comment

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

nit: remove empty line at the beginning of function

@ibarrajo ibarrajo enabled auto-merge (squash) May 7, 2024 20:00
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.13%. Comparing base (abfa99b) to head (63fef70).
Report is 2 commits behind head on master.

Additional details and impacted files

see 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@coveralls
Copy link

coveralls commented May 7, 2024

Pull Request Test Coverage Report for Build 018f54c6-bb72-4d0c-a877-c16c27e1362a

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 37 unchanged lines in 9 files lost coverage.
  • Overall coverage increased (+0.009%) to 68.197%

Files with Coverage Reduction New Missed Lines %
service/history/shard/context.go 2 68.91%
service/history/handler/handler.go 2 60.71%
service/matching/taskListManager.go 2 81.16%
common/membership/hashring.go 2 84.69%
common/persistence/statsComputer.go 3 96.07%
service/history/task/fetcher.go 3 85.57%
service/frontend/api/handler.go 4 62.26%
service/history/engine/engineimpl/poll_mutable_state.go 9 74.16%
service/history/task/transfer_standby_task_executor.go 10 86.63%
Totals Coverage Status
Change from base Build 018f54af-1427-4fbc-bc5d-7b9472685578: 0.009%
Covered Lines: 100176
Relevant Lines: 146892

💛 - Coveralls

@ibarrajo ibarrajo added the test label May 7, 2024
auto-merge was automatically disabled May 7, 2024 20:58

Base branch was modified

@ibarrajo ibarrajo merged commit 5366958 into cadence-workflow:master May 7, 2024
20 checks passed
@ibarrajo ibarrajo deleted the apiHandlerTestRespondActivityTaskFailedAlternate branch May 7, 2024 21:13
abhishekj720 pushed a commit to abhishekj720/cadence that referenced this pull request May 7, 2024
…flow#5980)

* TestRespondActivityTaskFailed_Success implementation

* Alternate test for TerstRespondActivityTaskFailed

* code lint
abhishekj720 pushed a commit to abhishekj720/cadence that referenced this pull request May 7, 2024
…flow#5980)

* TestRespondActivityTaskFailed_Success implementation

* Alternate test for TerstRespondActivityTaskFailed

* code lint
agautam478 pushed a commit to agautam478/cadence that referenced this pull request May 8, 2024
…flow#5980)

* TestRespondActivityTaskFailed_Success implementation

* Alternate test for TerstRespondActivityTaskFailed

* code lint
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.

3 participants