Commit 81a5805
fix: add size-based filtering to --env-all to prevent E2BIG (#1978)
* fix: add size-based filtering to --env-all to prevent E2BIG
Add MAX_ENV_VALUE_SIZE (64KB) per-variable cap to --env-all passthrough.
Variables exceeding this threshold are skipped with a warning listing
the dropped keys and their sizes. Also add a total environment size
warning when the combined env approaches ARG_MAX (~1.5MB threshold).
This prevents the 'Argument list too long' (E2BIG) kernel error that
occurs when the runner environment (~1.5-2MB) is combined with large
command arguments (e.g., inlined prompts).
Closes #1965
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update src/docker-manager.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 06b99eb commit 81a5805
2 files changed
Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1645 | 1645 | | |
1646 | 1646 | | |
1647 | 1647 | | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1648 | 1684 | | |
1649 | 1685 | | |
1650 | 1686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
| |||
880 | 893 | | |
881 | 894 | | |
882 | 895 | | |
| 896 | + | |
883 | 897 | | |
884 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
885 | 907 | | |
886 | 908 | | |
887 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
888 | 917 | | |
889 | 918 | | |
890 | 919 | | |
| |||
989 | 1018 | | |
990 | 1019 | | |
991 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
992 | 1036 | | |
993 | 1037 | | |
994 | 1038 | | |
| |||
0 commit comments