[asterisk-bugs] [JIRA] (ASTERISK-30452) Test Suite: Fix regression causing all builds to fail

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Sun Mar 5 08:01:03 CST 2023


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua C. Colp updated ASTERISK-30452:
--------------------------------------

    Assignee: N A

> Test Suite: Fix regression causing all builds to fail
> -----------------------------------------------------
>
>                 Key: ASTERISK-30452
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30452
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Tests/testsuite
>    Affects Versions: GIT
>         Environment: Debian 11
>            Reporter: N A
>            Assignee: N A
>            Severity: Major
>
> Ever since commit c930bfec37118e37ff271bf381825408d2409fec, all my CI builds have been failing. It appears there is something invalid about tests/apps/tests.yaml on the last line (block sequence entries not allowed) that causes the parser to choke.
> The issue here is that the newline at the end of the file got removed, causing the parsing of that line to fail. This adds a newline to fix that.
> {noformat}
> Collecting https://github.com/asterisk/starpy/archive/refs/heads/1.1.zip (from -r ./extras.txt (line 1))
>   Downloading https://github.com/asterisk/starpy/archive/refs/heads/1.1.zip
>      - 70.1 kB 6.0 MB/s 0:00:00
>   Preparing metadata (setup.py): started
>   Preparing metadata (setup.py): finished with status 'done'
> Collecting https://github.com/asterisk/yappcap/archive/refs/heads/python3.zip (from -r ./extras.txt (line 2))
>   Downloading https://github.com/asterisk/yappcap/archive/refs/heads/python3.zip
>      - 354.0 kB 5.3 MB/s 0:00:00
>   Installing build dependencies: started
>   Installing build dependencies: finished with status 'done'
>   Getting requirements to build wheel: started
>   Getting requirements to build wheel: finished with status 'done'
>   Preparing metadata (pyproject.toml): started
>   Preparing metadata (pyproject.toml): finished with status 'done'
> Requirement already satisfied: Cython in ./.venv/lib/python3.9/site-packages (from yappcap==0.0.1->-r ./extras.txt (line 2)) (0.29.28)
> Traceback (most recent call last):
>   File "/usr/src/testsuite/runtests.py", line 1027, in <module>
>     sys.exit(main() or 0)
>   File "/usr/src/testsuite/runtests.py", line 952, in main
>     test_suite = TestSuite(options)
>   File "/usr/src/testsuite/runtests.py", line 492, in __init__
>     self.tests = self._parse_test_yaml("tests")
>   File "/usr/src/testsuite/runtests.py", line 536, in _parse_test_yaml
>     tests += self._parse_test_yaml(path)
>   File "/usr/src/testsuite/runtests.py", line 508, in _parse_test_yaml
>     config = load_yaml_config("%s/%s" % (test_dir, TESTS_CONFIG))
>   File "/usr/src/testsuite/runtests.py", line 794, in load_yaml_config
>     config = yaml.load(f, Loader=MyLoader)
>   File "/usr/src/testsuite/.venv/lib/python3.9/site-packages/yaml/__init__.py", line 81, in load
>     return loader.get_single_data()
>   File "/usr/src/testsuite/.venv/lib/python3.9/site-packages/yaml/constructor.py", line 49, in get_single_data
>     node = self.get_single_node()
>   File "yaml/_yaml.pyx", line 673, in yaml._yaml.CParser.get_single_node
>   File "yaml/_yaml.pyx", line 687, in yaml._yaml.CParser._compose_document
>   File "yaml/_yaml.pyx", line 731, in yaml._yaml.CParser._compose_node
>   File "yaml/_yaml.pyx", line 845, in yaml._yaml.CParser._compose_mapping_node
>   File "yaml/_yaml.pyx", line 729, in yaml._yaml.CParser._compose_node
>   File "yaml/_yaml.pyx", line 806, in yaml._yaml.CParser._compose_sequence_node
>   File "yaml/_yaml.pyx", line 731, in yaml._yaml.CParser._compose_node
>   File "yaml/_yaml.pyx", line 847, in yaml._yaml.CParser._compose_mapping_node
>   File "yaml/_yaml.pyx", line 860, in yaml._yaml.CParser._parse_next_event
> yaml.scanner.ScannerError: block sequence entries are not allowed in this context
>   in "tests/apps/tests.yaml", line 33, column 27
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list