In the morning I slapped together scripts that create tokens for those hundreds of users that I created earlier, with distinct providers. Ran them in parallel, in 5 processes (or 6?), got the output of the time it took, and then in Scala got stats from those script runs. Ok, the range is 0.7 to 1.9 seconds; once a day per user, no big deal.
During the standup notified the guys about my readiness to deploy to prod, and ok, it was approved, as well as my other pr, with new test code for experiments.
I planned to deploy earlier, but Mahesh and Serkan organized a meeting regarding how t.f. to make sbt work. Turned out that if we don't use Nix, our documentation sucks, and Nix also sucks without good maintenance.
There were about six of us, helping the guys, and you know, it worked! Serkan never dealt with Java or Scala, so for him it's all a weird mystery. For me sbt is a bit of a mystery too, but well, we together know definitely more.
Then I deployed to prod, and looked at the behavior. It was ok. Then I decided to check the behavior with the new keys. And oops, no trace. Then I looked in the database, and kaboom, new keys were missing. Ok, np, I have a script for that. Got the new keys again. Now what. Now I had to test. For that I had to find profileId in prod, and sessionId. Normally, they are in X-something headers in requests: I open our company's page, started some music (Ok, Prelude and Fugue in c minor), and looked at network exchange. No such headers. Karen had such headers. So I copied her id, and she told me how to grab session id.
So, I wrote my scripts, and found that one new key works ok, but another (contains space char in it) does not work. Fck.
It's almost 23:00, and I've just sent my pr for review. No luck, actually: Karen is off by now.
Anyway, I have stuff to do, and some keys work ok, and if it gets urgent, I'll just rename the provider, to get rid of spaces (stupid, right?)
One revolutionary thing was, I added logging, and limited logging by a date, May 1st, 00:00 - by that time everything will be clear. If Karen asks for keeping it forever, I'd love to. But so far I heard strange ideas about saving logs space. Heard it from Csaba a while ago. As if space costs anything, and our time costs nothing.
During the standup notified the guys about my readiness to deploy to prod, and ok, it was approved, as well as my other pr, with new test code for experiments.
I planned to deploy earlier, but Mahesh and Serkan organized a meeting regarding how t.f. to make sbt work. Turned out that if we don't use Nix, our documentation sucks, and Nix also sucks without good maintenance.
There were about six of us, helping the guys, and you know, it worked! Serkan never dealt with Java or Scala, so for him it's all a weird mystery. For me sbt is a bit of a mystery too, but well, we together know definitely more.
Then I deployed to prod, and looked at the behavior. It was ok. Then I decided to check the behavior with the new keys. And oops, no trace. Then I looked in the database, and kaboom, new keys were missing. Ok, np, I have a script for that. Got the new keys again. Now what. Now I had to test. For that I had to find profileId in prod, and sessionId. Normally, they are in X-something headers in requests: I open our company's page, started some music (Ok, Prelude and Fugue in c minor), and looked at network exchange. No such headers. Karen had such headers. So I copied her id, and she told me how to grab session id.
So, I wrote my scripts, and found that one new key works ok, but another (contains space char in it) does not work. Fck.
It's almost 23:00, and I've just sent my pr for review. No luck, actually: Karen is off by now.
Anyway, I have stuff to do, and some keys work ok, and if it gets urgent, I'll just rename the provider, to get rid of spaces (stupid, right?)
One revolutionary thing was, I added logging, and limited logging by a date, May 1st, 00:00 - by that time everything will be clear. If Karen asks for keeping it forever, I'd love to. But so far I heard strange ideas about saving logs space. Heard it from Csaba a while ago. As if space costs anything, and our time costs nothing.