Skip to content

Commit 2efc5f4

Browse files
committed
circcleci run all job with large, also try to fix context deadline exceeded with espressif build
1 parent be9d197 commit 2efc5f4

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

.circleci/config.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232
BUILDSYSTEM_TOOLCHAIN+=("cmake arm-iar")
3333
fi
3434
35-
RESOURCE_LARGE='["nrf", "imxrt", "stm32f4", "stm32h7 stm32h7rs"]'
36-
3735
gen_build_entry() {
3836
local build_system="$1"
3937
local toolchain="$2"
@@ -61,21 +59,7 @@ jobs:
6159
FAMILY=$(echo $MATRIX_JSON | jq -r ".\"$toolchain\"")
6260
echo "FAMILY_${toolchain}=$FAMILY"
6361
64-
# FAMILY_LARGE = FAMILY - RESOURCE_LARGE
65-
# Separate large from medium+ resources
66-
FAMILY_LARGE=$(jq -n --argjson family "$FAMILY" --argjson resource "$RESOURCE_LARGE" '$family | map(select(IN($resource[])))')
67-
FAMILY=$(jq -n --argjson family "$FAMILY" --argjson resource "$RESOURCE_LARGE" '$family | map(select(IN($resource[]) | not))')
68-
69-
if [[ $toolchain == esp-idf || $toolchain == arm-iar ]]; then
70-
gen_build_entry "$build_system" "$toolchain" "$FAMILY" "large"
71-
else
72-
gen_build_entry "$build_system" "$toolchain" "$FAMILY" "medium+"
73-
74-
# add large resources if available
75-
if [ "$(echo $FAMILY_LARGE | jq 'length')" -gt 0 ]; then
76-
gen_build_entry "$build_system" "$toolchain" "$FAMILY_LARGE" "large"
77-
fi
78-
fi
62+
gen_build_entry "$build_system" "$toolchain" "$FAMILY" "large"
7963
done
8064
8165
- continuation/continue:

.circleci/config2.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ commands:
106106
name: Build
107107
command: |
108108
if [ << parameters.toolchain >> == esp-idf ]; then
109+
export PYTHONUNBUFFERED=1 # prevent context deadline (10m) exceeded
109110
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.3.2 python tools/build.py << parameters.family >>
110111
else
111112
# Toolchain option default is gcc
@@ -127,7 +128,7 @@ jobs:
127128
parameters:
128129
resource_class:
129130
type: string
130-
default: medium+
131+
default: large
131132
build-system:
132133
type: string
133134
toolchain:

0 commit comments

Comments
 (0)