Skip to content

Commit

Permalink
Debug failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
frej committed Dec 26, 2023
1 parent 07d87f9 commit b27cb96
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/requirements-earliest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mercurial==6.1.4
mercurial==6.1
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ jobs:
cache: 'pip'
cache-dependency-path: '**/requirements-earliest.txt'

- name: Report selected version
run: echo '${{ steps.earliest.outputs.python-version }}'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r .github/requirements-earliest.txt
- name: Look for hg
run: hg --version
- name: Report selected versions
run: |
echo Selected '${{ steps.earliest.outputs.python-version }}'
python --version
python3 --version
hg --version
./hg-fast-export.sh -h
- name: Run tests on earliest supported Python version
run: make -C t
Expand All @@ -58,19 +60,20 @@ jobs:
cache: 'pip'
cache-dependency-path: '**/requirements-latest.txt'

- name: Report selected version
run: echo '${{ steps.latest.outputs.python-version }}'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r .github/requirements-latest.txt
- name: Look for hg
run: hg --version
- name: Report selected version
run: |
echo Selected '${{ steps.latest.outputs.python-version }}'
echo python --version
hg --version
./hg-fast-export.sh -h
- name: Run tests on 3.x
run: make -C t TEST_OPTS="--debug --verbose"
run: make -C t

code-quality:
name: Run code quality checks
Expand Down
6 changes: 5 additions & 1 deletion hg-fast-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ GFI_OPTS=""

if [ -z "${PYTHON}" ]; then
# $PYTHON is not set, so we try to find a working python with mercurial:
for python_cmd in python2 python python3; do
for python_cmd in python3 python; do
if command -v $python_cmd > /dev/null; then
$python_cmd -c 'from mercurial.scmutil import revsymbol' 2> /dev/null
if [ $? -eq 0 ]; then
Expand All @@ -45,6 +45,10 @@ if [ -z "${PYTHON}" ]; then
exit 1
fi

echo "Will use python ${PYTHON}"

${PYTHON} --version

USAGE="[--quiet] [-r <repo>] [--force] [--ignore-unnamed-heads] [-m <max>] [-s] [--hgtags] [-A <file>] [-B <file>] [-T <file>] [-M <name>] [-o <name>] [--hg-hash] [-e <encoding>]"
LONG_USAGE="Import hg repository <repo> up to either tip or <max>
If <repo> is omitted, use last hg repository as obtained from state file,
Expand Down

0 comments on commit b27cb96

Please sign in to comment.