Skip to content

fix: Destination migration testing using incorrect mode#822

Merged
kodiakhq[bot] merged 2 commits intomainfrom
fix/dest_testing
Apr 28, 2023
Merged

fix: Destination migration testing using incorrect mode#822
kodiakhq[bot] merged 2 commits intomainfrom
fix/dest_testing

Conversation

@yevgenypats
Copy link
Contributor

Summary


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@github-actions github-actions bot added the fix label Apr 24, 2023
@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.15 ⚠️

Comparison is base (51697d2) 47.18% compared to head (e60c8a4) 47.04%.

❗ Current head e60c8a4 differs from pull request most recent head 9578005. Consider uploading reports for the commit 9578005 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #822      +/-   ##
==========================================
- Coverage   47.18%   47.04%   -0.15%     
==========================================
  Files          76       76              
  Lines        7845     7858      +13     
==========================================
- Hits         3702     3697       -5     
- Misses       3643     3670      +27     
+ Partials      500      491       -9     

see 8 files with indirect coverage changes

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

@github-actions
Copy link

github-actions bot commented Apr 24, 2023

⏱️ Benchmark results

  • DefaultConcurrencyDFS-2 resources/s: 10,680
  • DefaultConcurrencyRoundRobin-2 resources/s: 12,465
  • Glob-2 ns/op: 218
  • TablesWithChildrenDFS-2 resources/s: 25,373
  • TablesWithChildrenRoundRobin-2 resources/s: 23,949
  • TablesWithRateLimitingDFS-2 resources/s: 28.05
  • TablesWithRateLimitingRoundRobin-2 resources/s: 804.7
  • BufferedScanner-2 ns/op: 10.78
  • LogReader-2 ns/op: 32.78

@disq
Copy link
Member

disq commented Apr 24, 2023

const (
	MigrateModeSafe MigrateMode = iota
	MigrateModeForced
)

How is it incorrect? Zero value defaults to safe. Maybe not 'explicit', but shouldn't be incorrect?

@hermanschaaf
Copy link
Contributor

Yeah, I think it's just not explicit, but explicit is better than implicit I think, so we may want to just update the title of this PR if it's not fixing anything in reality.

@yevgenypats
Copy link
Contributor Author

yevgenypats commented Apr 28, 2023

const (
	MigrateModeSafe MigrateMode = iota
	MigrateModeForced
)

How is it incorrect? Zero value defaults to safe. Maybe not 'explicit', but shouldn't be incorrect?

I think it might be due to a race where the variable was changed in another test. but not sure at this stage.

@kodiakhq kodiakhq bot merged commit fa51c80 into main Apr 28, 2023
@kodiakhq kodiakhq bot deleted the fix/dest_testing branch April 28, 2023 20:04
kodiakhq bot pushed a commit that referenced this pull request May 2, 2023
🤖 I have created a release *beep* *boop*
---


## [2.5.2](v2.5.1...v2.5.2) (2023-05-02)


### Bug Fixes

* **deps:** Update github.com/apache/arrow/go/v12 digest to 0ea1a10 ([#836](#836)) ([5561fa1](5561fa1))
* **deps:** Update golang.org/x/exp digest to 47ecfdc ([#837](#837)) ([bb56f9c](bb56f9c))
* **deps:** Update golang.org/x/xerrors digest to 04be3eb ([#838](#838)) ([42d4517](42d4517))
* **deps:** Update google.golang.org/genproto digest to daa745c ([#839](#839)) ([1285222](1285222))
* **deps:** Update module github.com/avast/retry-go/v4 to v4.3.4 ([#840](#840)) ([47da73d](47da73d))
* Destination migration testing using incorrect mode ([#822](#822)) ([fa51c80](fa51c80))
* **json:** Use `GetOneForMarshal` instead of deserialization-serialization cycle ([#834](#834)) ([6fb7c1c](6fb7c1c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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