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

Temporary skip tests using net/redistest #2458

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

AlexanderYastrebov
Copy link
Member

@AlexanderYastrebov AlexanderYastrebov commented Jul 13, 2023

Redis testcontainer fails to start due to testcontainers/testcontainers-go#1359 caused by golang/go#61076 and we can not pin cdp-runtime/go to a working patch version before 1.20.6

@AlexanderYastrebov AlexanderYastrebov changed the title Skip tests using net/redistest Temporary skip tests using net/redistest Jul 13, 2023
@AlexanderYastrebov
Copy link
Member Author

👍

@@ -15,6 +15,9 @@ func NewTestRedis(t testing.TB) (address string, done func()) {
}

func NewTestRedisWithPassword(t testing.TB, password string) (address string, done func()) {

t.Skip("https://github.com/testcontainers/testcontainers-go/issues/1359")
Copy link
Member

Choose a reason for hiding this comment

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

Can we set some deadline after which this skip won't work?
Something like this:

if time.Now() < time.Parse("2023-Sep-01", "2014-Feb-04") {
    t.Skip("https://github.com/testcontainers/testcontainers-go/issues/1359")
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, fixed.

Redis testcontainer fails to start due to testcontainers/testcontainers-go#1359
caused by golang/go#61076 and
we can not pin cdp-runtime/go to a working patch version before 1.20.6

Signed-off-by: Alexander Yastrebov <[email protected]>
@@ -15,6 +15,11 @@ func NewTestRedis(t testing.TB) (address string, done func()) {
}

func NewTestRedisWithPassword(t testing.TB, password string) (address string, done func()) {

if fixDeadline, _ := time.Parse("2006-01-02", "2023-08-01"); time.Now().Before(fixDeadline) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Could use time.DateOnly but its only available since go1.20

@RomanZavodskikh
Copy link
Member

👍

@@ -15,6 +15,11 @@ func NewTestRedis(t testing.TB) (address string, done func()) {
}

func NewTestRedisWithPassword(t testing.TB, password string) (address string, done func()) {

if fixDeadline, _ := time.Parse("2006-01-02", "2023-08-01"); time.Now().Before(fixDeadline) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't get the relevance of 2006 date

Copy link
Member Author

Choose a reason for hiding this comment

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

@AlexanderYastrebov
Copy link
Member Author

Note: pr / check-race failed due to #2386

@AlexanderYastrebov
Copy link
Member Author

Merging as testcontainers fix may take a while

@AlexanderYastrebov
Copy link
Member Author

👍

@AlexanderYastrebov AlexanderYastrebov merged commit 7f36fca into master Jul 15, 2023
@AlexanderYastrebov AlexanderYastrebov deleted the build/skip-redis-tests branch July 15, 2023 23:10
AlexanderYastrebov added a commit that referenced this pull request Aug 1, 2023
Followup on #2458

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this pull request Aug 1, 2023
Followup on #2458

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this pull request Aug 1, 2023
Followup on #2458

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this pull request Aug 6, 2023
* update testcontainers to fix goroutine leak (see testcontainers/testcontainers-go#1441)
  [changes](testcontainers/testcontainers-go@v0.20.1...d1c291e)
* enable redis tests back

Updates #2458
Closes #2496

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this pull request Aug 6, 2023
* update testcontainers to fix goroutine leak (see testcontainers/testcontainers-go#1441)
  [changes](testcontainers/testcontainers-go@v0.20.1...d1c291e)
* enable redis tests back

Updates #2458
Closes #2496

Signed-off-by: Alexander Yastrebov <[email protected]>
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.

3 participants