Skip to content

Commit

Permalink
Fix issue with search timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Aug 14, 2024
1 parent b11bbf4 commit de788f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,20 @@ jobs:
run: ./bin/alr -d -n version | grep 'compiled with version' | grep -q '${{ matrix.gcc_version }}'

- name: Update dependencies
run: ./bin/alr -d -n update
run: ./bin/alr -d -n -f update
# Force because otherwise solving may time out in non-interactive mode

- name: Show dependencies/pins
run: |
./bin/alr -d -n -q with --solve || ./bin/alr -n -v -d with --solve
if ./bin/alr -n -q with --solve | grep -q 'Dependencies (missing):'; then
echo "SELF-SOLVING FAILED, complete log follows:"
./bin/alr -n -vv update
exit 1
fi
run: ./bin/alr -d -n -q with --solve || ./bin/alr -n -v -d with --solve

- name: Show build environment, with debug fallback
run: ./bin/alr -d -n printenv || ./bin/alr -n -v -d printenv

- name: Move ./bin to ./bin-old to allow for self-build
shell: bash
run: mv ./bin ./bin-old || { sleep 5s && mv ./bin ./bin-old; }
run: |
mv ./bin ./bin-old || \
{ sleep 5s && mv ./bin ./bin-old && echo Old moved on 2nd attempt; }
# Windows doesn't allow to replace a running exe so the next command
# fails otherwise. Also, this mv fails sometimes so we try twice JIC.

Expand Down
2 changes: 1 addition & 1 deletion src/alire/alire-solver.adb
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ package body Alire.Solver is
begin
Timer.Hold;

if Not_Interactive
if (Not_Interactive and then not Force)
or else Options.Stopping = Stop
or else User_Answer_Continue = No
then
Expand Down

0 comments on commit de788f9

Please sign in to comment.