A quick update on the bizare strange weird heredoc permissions error I uncovered a few days ago. First of all I fixed the error. I added a chmod of the file after it gets created in the bash script, and after running several tests, the file now gets created with the correct permissions. Also I check that the update didn’t break the main site build. Technically the problem is fixed.
It does bring up some interesting things though:
- The environments used to run the code sometimes differ. That’s unusual. I would have expected that if the heredoc got created with specific permissions, then it should always get created in the same way across all the environments since they all use the same linux image as far as I can tell. I’m certainly not changing the configuration in any way between environments. Typically the OS has a specific umask set that it uses to create file in a consistent way.
- Having all the workflows all using the same reusable workflows definitely made it easier to see what was happening and fix the problem, even if it’s still a mystery why the file got created with the incorrect permissions. It strongly suggests an issue with the underlying platform rather than be anything to do with my code.
- Strangely bizarely weirdly, as I pushed out the fix and tested it this morning at the internet place it had been pretty quiet all morning. The instant I decided to deploy a pretty large flareup between customers in one of the neighboring cafes occurred between a butch woman and several men. It continued all through deploy and testing until literally I started to write this bullet item. I was at it’s most intense right when I discovered the fix had worked. There appeared to be a 'moment of proof and certainty' by participants in the argument. Weird. Smaller versions of this happen constantly, but this one felt very 'canonical', for some reason.
As I finished writing the previous item, one of the quieter older men from the flareup quietly said 'voila'.
Btw they can see me standing next to the cafe typing away on my device but to my knowledge that’s all they can see.
Anyway enough said. Just another weird coding and RL interaction.
Update: Just as I was getting ready to leave, having already committed this note, putting my stuff together and packing my bag, one of the men involved in the flareup, loudly said 'you know, ower' as he got on his motorbike and left. It wasn’t clear to me who he was saying it to, but it’s certainly an interesting thing to say given the issue in my code was a permissions issue.
Update: As I finished writting the previous update, several people from both cafes all said 'wow' one after the other.
Update: As I wrote the previous update someone said 'you know, pay'. #