Crew update should exit if it fails (#8909)

* make failed crew update cause non-zero errorstatus, update github action

* bump version

* adjust github action

* adjust github action

* intentionally break crew update

* fix crew update

* Add remove package to github action
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2023-11-08 10:19:08 -05:00
committed by GitHub
parent 64cbad2c93
commit 2b946f5561
3 changed files with 7 additions and 6 deletions

View File

@@ -16,8 +16,9 @@ jobs:
- name: Unit Tests
run: |
sudo docker run -t satmandu/crewbuild:amd64 sudo -i -u chronos /bin/bash -c "
echo \"CREW_REPO is ${{ github.actor }}\" && \
echo \"CREW_REPO is ${{ github.event.pull_request.head.repo.clone_url }}\" && \
echo \"CREW_BRANCH is ${{ github.head_ref }}\" && \
CREW_REPO=https://github.com/${{ github.actor }}/chromebrew.git CREW_BRANCH=${{ github.head_ref }} crew update && \
CREW_REPO=${{ github.event.pull_request.head.repo.clone_url }} CREW_BRANCH=${{ github.head_ref }} crew update && \
yes | crew upgrade && \
yes | crew install vim"
yes | crew install vim && \
yes | crew remove vim"

View File

@@ -660,8 +660,8 @@ def update
system "git sparse-checkout set packages manifest/#{USER_SPACE_ARCH} lib bin crew tools"
system 'git sparse-checkout reapply'
system "git fetch #{CREW_REPO} #{CREW_BRANCH}"
system 'git reset --hard FETCH_HEAD'
system "git fetch #{CREW_REPO} #{CREW_BRANCH}", exception: true
system 'git reset --hard FETCH_HEAD', exception: true
end
puts 'Package lists, crew, and library updated.'

View File

@@ -1,6 +1,6 @@
# lib/const.rb
# Defines common constants used in different parts of crew
CREW_VERSION = '1.38.10'
CREW_VERSION = '1.38.11'
# kernel architecture
KERN_ARCH = `uname -m`.chomp