Skip to content

Conversation

@zhukexin1228
Copy link
Collaborator

@zhukexin1228 zhukexin1228 commented Apr 18, 2024

  • Delete and modify outputs
  • Run 1 control run, and 3 experimental run with all v2, half v1 and half v2, half v2 and half v1

bug1:
v2 has a logic bug, each transaction the amount become 100*amount

bug2:
v2 will auto generate a 12 digit acct id.
Created 3 requests, in experimental run for half v2 half v1

  • (v2) signup -> return 12 digit acct id
  • (v2) deposit 500: failed while validate 10 digit acct id
  • (v1) send 100: failed while validate 10 digit acct id

Output
bug1
Screenshot from 2024-05-02 16-14-19

bug2
Screenshot from 2024-05-02 16-13-59

return err
}
i.Logger(ctx).Info("Creating password hash.")
passwordHash, err := bcrypt.GenerateFromPassword([]byte(r.Password), bcrypt.MinCost)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hashed password is too long, skip the hash

@zhukexin1228 zhukexin1228 self-assigned this Apr 18, 2024
@zhukexin1228 zhukexin1228 requested a review from mwhittaker April 18, 2024 16:10
}

// hack the response
output1Str := strings.ReplaceAll(string(output1), "400 Bad Request", "")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure why there is 400 Bad Request at the end of each http response. Ignore them

b.WriteString("\n")
continue
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Remove the code to run control twice and get the non-deterministic part in response. It does not help for html response and we have another db diff approach, but only takes more time to do another run and text parse, maybe we should just delete all of them.

Copy link
Member

@mwhittaker mwhittaker left a comment

Choose a reason for hiding this comment

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

Nice Kexin!

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.

2 participants