You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Gyan Ranjan A
committed
fix: prevent ENAMETOOLONG crash when parallel:matrix generates long job names
When parallel:matrix entries contain long variable values, the base64url
encoding in safeDockerString expands the job name beyond the 255-byte
NAME_MAX limit, crashing with ENAMETOOLONG before any job executes.
Fix: when the encoded name exceeds 238 chars (255 minus the 17-char
worst-case suffix from Docker volume names), truncate to a readable
prefix and append a 16-char SHA-256 hash of the original name. Short
names are unchanged.
Fixes#1862
expect(result).toContain("Lw");// '/' encodes to base64url
279
+
});
280
+
281
+
it("should truncate and hash when encoded name exceeds MAX_FILENAME_LENGTH",()=>{
282
+
constlongName="my-group/common/python-unit-test: [my-app-controller,My app controller to be used as reference for development teams,python311,controller,common,controller/setup.py,controller/setup_c.py,controller/setup_n.py,controller/tests/**/*,controller/coverage/*,controller/build/**/*,controller/coverage/coverage-unit.xml,75,true]";
0 commit comments