qchateau / conan-center-bot

A bot to automatically update conan-center-index
GNU General Public License v3.0
11 stars 2 forks source link

handle gnome projects #56

Closed ericLemanissier closed 3 years ago

ericLemanissier commented 3 years ago

this can be tested on:

I tried it locally by removing the last version of at-spi2-core in my local clone of CCI, and got this output:

$ python3 main.py status -v -v --recipe at-spi2-core
getting PR page 1
98 results
getting PR page 2
0 results
1 updatable recipes
 * at-spi2-core

+--------------+----------------+-------------+------------------+------------+
| Name         | Recipe version | New version | Upstream version | Pending PR |
+--------------+----------------+-------------+------------------+------------+
| at-spi2-core | 2.38.0         | 2.39.1      | 2.39.1           | 0          |
+--------------+----------------+-------------+------------------+------------+
$ python3 main.py update -v -v at-spi2-core
Branch 'ccb-at-spi2-core-2.39.1' already exists, overwrite ? [y/N] y
at-spi2-core: adding upstream version 2.39.1 based on 2.38.0 in branch ccb-at-spi2-core-2.39.1
at-spi2-core: downloading source and computing its sha256 digest
at-spi2-core: patching files
at-spi2-core: running test
at-spi2-core: test passed in 7.3s
at-spi2-core: created version 2.39.1 in branch ccb-at-spi2-core-2.39.1 (not pushed)
Traceback (most recent call last):
  File "main.py", line 6, in <module>
    main()
  File "/mnt/c/pf/conan-center-bot/ccb/__main__.py", line 214, in main
    sys.exit(args.func(args))
  File "/mnt/c/pf/conan-center-bot/ccb/__main__.py", line 39, in cmd_update
    return asyncio.run(
  File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/mnt/c/pf/conan-center-bot/ccb/update/manual.py", line 132, in manual_update_recipes
    await manual_update_one_recipe(
  File "/mnt/c/pf/conan-center-bot/ccb/update/manual.py", line 116, in manual_update_one_recipe
    elif status.test_ran and not status.test_success:
AttributeError: 'UpdateStatus' object has no attribute 'test_ran'

the error does not look related to my change, is it ?

qchateau commented 3 years ago

Nah, I never use the manual update, so it's probably broken. I'll take a look at both this issue and your PR this weekend :)