zuul-jobs/roles/set-zuul-log-path-fact
Tristan Cacqueray 2f7ffba18d Update the set-zuul-log-path-fact scheme to prevent huge url
This change simplifies the path creation logic to avoid processing
user defined variables such as job name and pipeline name, which
might cause the log url to exceed the database storage presently
fixed at 255 char.

Add warning in the job's header when the url is over 255 characters,
explaining that Zuul won't report the job properly in its database;
but the job can still run.

Change-Id: I34fb5662a2f958c55f60458ce107bad2a73b9c96
2025-03-19 18:34:58 +00:00
..

Sets a fact named zuul_log_path from zuul variables

The resulting log path will be based on the zuul tenant name and build uuid. The url will then be prefixed by a portion of the build uuid. This prefix allows for partitioning in object storage systems. Constructing the url in this way isn't very human readable but produces consistent url lengths which is important for database record keeping and avoiding unexpected problems with url lengths exceeding limits.