Skip to content

AppVeyor CI: combine_logs.py fails to fetch debug logs #16894

Closed

Description

@mzumsande

In case of failures of a functional test, the logs are not combined in the AppVeyor build, examples are
https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/27454958
https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/26931920
This makes it harder to investigate the root cause of the failures of the functional tests.
Some months ago it was still working (see linked logs in #14446).

Error message from AppVeyor Log:

python test\functional\test_runner.py --ci --quiet --combinedlogslen=4000 --failfast
Traceback (most recent call last):
  File "C:\projects\bitcoin/test/functional/combine_logs.py", line 198, in <module>
    main()
  File "C:\projects\bitcoin/test/functional/combine_logs.py", line 65, in main
    log_events = read_logs(testdir)
  File "C:\projects\bitcoin/test/functional/combine_logs.py", line 84, in read_logs
    chain = re.search(r'node0/(.+?)/debug\.log$', chain).group(1)  # extract the chain name
AttributeError: 'NoneType' object has no attribute 'group'

Activity

  1. maflcko commented on Sep 17, 2019

    @maflcko
    Member

    The regex should use os.path.sep instead of hardcoding the linux one

  2. renepickhardt commented on Sep 17, 2019

    @renepickhardt

    hopefully this should have fixed the issue. couldn't test this though.

  3. locked as resolved and limited conversation to collaborators on Dec 16, 2021
  4. added a commit that references this issue on Feb 1, 2022
    b69cc33
  5. added a commit that references this issue on Dec 6, 2023
    921c93d
  6. added a commit that references this issue on Jul 19, 2026
    9286c45
  7. added a commit that references this issue on Aug 30, 2026
    af3e9d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions