Skip to content

Commit

Permalink
.github/zephyr: time some fetch commands
Browse files Browse the repository at this point in the history
GitHub conveniently times each step but to reduce step proliferation we
sometimes have multiple commands in a single step and lose the ability
to time download commands. Prefix them with `time` to restore the data.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Oct 20, 2023
1 parent 201871b commit 0d61cb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/zephyr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
- name: west clones

run: pip3 install west && cd workspace/sof/ && west init -l &&
west update --narrow --fetch-opt=--filter=tree:0
time west update --narrow --fetch-opt=--filter=tree:0

- name: select zephyr revision
run: |
Expand All @@ -149,7 +149,7 @@ jobs:
sed -e "s#=sof_zephyr_revision_override=#${rem_rev}#" \
sof-ci-jenkins/zephyr-override-template.yml > test-zephyr-main.yml
)
west update --narrow --fetch-opt=--filter=tree:0
time west update --narrow --fetch-opt=--filter=tree:0
fi
# Because we used git tricks to speed things up, we now have two git
Expand All @@ -167,7 +167,7 @@ jobs:
# both issues in no time.
cd zephyr
git fetch --filter=tree:0 "$(git remote |head -n1)" "$rem_rev":_branch_placeholder
time git fetch --filter=tree:0 "$(git remote |head -n1)" "$rem_rev":_branch_placeholder
git branch -D _branch_placeholder
set -x
Expand Down

0 comments on commit 0d61cb0

Please sign in to comment.