Huge problem with tests on Replication Stage

Test cases on this extension are very inconsistent. I’m currently stuck on stage #YD3 and last time I asked this admin or whoever the guy is told me to make previous stages pass. This, however, is impossible because every time I run the code I get different outputs from the tests. When I run

codecrafters test --previous

or

codecrafters test

Three possibilities happened so far:

  1. All the tests passed but when I try to submit #YD3 or #YG4 fail
  2. #YG4 fails with these errors:
    [tester::#YG4] [test] Getting key foo
    [tester::#YG4] [test] client: $ redis-cli GET foo
    [tester::#YG4] [test] Retrying… (1/5 attempts)
    [tester::#YG4] [test] client: > GET foo
    [tester::#YG4] [test] Retrying… (2/5 attempts)
    [tester::#YG4] [test] client: > GET foo
    [tester::#YG4] [test] Retrying… (3/5 attempts)
    [tester::#YG4] [test] client: > GET foo
    [tester::#YG4] [test] Retrying… (4/5 attempts)
    [tester::#YG4] [test] client: > GET foo
    [tester::#YG4] [test] Retrying… (5/5 attempts)
    [tester::#YG4] [test] client: > GET foo
    [tester::#YG4] Expected simple string or bulk string, got NIL
    [tester::#YG4] Test failed (try setting ‘debug: true’ in your codecrafters.yml to see more details)
  3. #YD3 fails with these errors:
    [tester::#YD3] [test] master: > REPLCONF GETACK *
    [tester::#YD3] Received: “” (no content received)
    [tester::#YD3] ^ error
    [tester::#YD3] Error: Expected start of a new RESP2 value (either +, -, :, $ or *)
    [tester::#YD3] Test failed (try setting ‘debug: true’ in your codecrafters.yml to see more details)

Of course, when I test locally everything works as expected, and when I check tcp connections they are all there. Here is the link to my github in case anyone has any solutions to this (though I’m sure it’s not my fault):

6 posts were merged into an existing topic: Problem with a testcase in #YD3

A post was merged into an existing topic: Problem with a testcase in #YD3

Moved all posts to your previous topic. Closing this one.