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

fix: close init after assigning storage settings #2678

Merged
merged 3 commits into from
Nov 9, 2022

Conversation

BonapartePC
Copy link
Contributor

@BonapartePC BonapartePC commented Nov 9, 2022

Description

Close Init after storage settings are assigned and log errors while uploading proc_errors instead of panic

Notion Ticket

https://www.notion.so/rudderstacks/Allow-Customers-to-use-self-storage-26f45f75e38b4ef6bd872bea6187aa06

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Copy link
Member

@chandumlg chandumlg left a comment

Choose a reason for hiding this comment

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

Are there tests for this?

@chandumlg
Copy link
Member

Tests failed. https://github.com/rudderlabs/rudder-server/actions/runs/3427651131/jobs/5710914119

Needs to fix tests to adapt to the new behavior. @BonapartePC

@atzoum
Copy link
Contributor

atzoum commented Nov 9, 2022

also got this error while running tests in master

stash_test.go:142:
        	Error Trace:	/Users/aristzoumas/work/rudder-server/processor/stash/stash_test.go:142
        	Error:      	Not equal:
        	            	expected: 3
        	            	actual  : 2
        	Test:       	TestStoreErrorsToObjectStorage

@BonapartePC
Copy link
Contributor Author

also got this error while running tests in master

stash_test.go:142:
        	Error Trace:	/Users/aristzoumas/work/rudder-server/processor/stash/stash_test.go:142
        	Error:      	Not equal:
        	            	expected: 3
        	            	actual  : 2
        	Test:       	TestStoreErrorsToObjectStorage

Fixed the tests

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Base: 45.43% // Head: 45.43% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (1ab0b3b) compared to base (ea8cf4c).
Patch coverage: 67.74% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff               @@
##           release/1.3.x    #2678   +/-   ##
==============================================
  Coverage          45.43%   45.43%           
==============================================
  Files                287      287           
  Lines              47777    47803   +26     
==============================================
+ Hits               21707    21721   +14     
- Misses             24691    24703   +12     
  Partials            1379     1379           
Impacted Files Coverage Δ
processor/stash/stash.go 44.56% <66.66%> (+3.00%) ⬆️
services/fileuploader/fileuploader.go 97.05% <100.00%> (ø)
...rvices/streammanager/kafka/client/testutil/util.go 66.99% <0.00%> (-3.89%) ⬇️
router/router.go 73.77% <0.00%> (-0.09%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@chandumlg chandumlg merged commit 4986595 into release/1.3.x Nov 9, 2022
@chandumlg chandumlg deleted the fix.closeInitAfterStorageAssign branch November 9, 2022 13:25
This was referenced Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants