cool-easter-32542
12/17/2024, 1:15 PMpants export-codegen :: for every module, I get what looks like a race condition related to copying a CSV file. I isolated it to just one module, serenity.risk -- it fails even if I just do `pants export-codegen serenity.risk::`\n\n(1) It's unclear to me why this file would be in scope for code generation \n(2) Regardless, the error itself seems like a red herring, an error changing file permissions\n\nI tried further narrowing to sub-directories, etc., and it does seem to be this particular file.\n\nThe only notable thing about this file is its size, more than 500K:\n\n```\n-rw-r--r-- 1 serenitydev serenitydev 574136 May 13 2024 DAR_prices_data.csv\n\n```\n\nAdditional information:\n\n• Observed with pants 2.23.0 and 2.25.0.dev1\n• Running on Ubuntu jammy image\n• Inside Docker container, running in Docker Desktop 4.37 on MacOS 15.1.1\n\n```\n(.venv) serenitydev@adb319d55c1a:/workspaces/pms$ pants export-codegen :\n1611:29.08 [INFO] Writing generated files to dist/codegen\n161129.09 [ERROR] 1 Exception encountered:\n\nEngine traceback:\n in export-codegen goal\n\nIntrinsicError: Error copying bytes from /home/serenitydev/.cache/pants/lmdb_store/immutable/files/2d/2d522219da490246fd3842165d3ebb7362314e218a510c16daeb09bc8d5fc5a6 to /workspaces/pms/dist/codegen/serenity.risk/experiments/dar-wilshire/DAR_prices_data.csv: Permission denied (os error 13)\n\n```\n\nOutput of uname -a:\n\n```\nLinux c774de47c447 6.10.14-linuxkit #1 SMP Fri Nov 29 172203 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux\n\n```\n\nSeverity: very low, I can easily work around this.
pantsbuild/pants