question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add PyYAML 5.3.1 as a dependency to Helix machines running the Python scripts

See original GitHub issue

Overview and Motivation

As part of the effort for the Merge-on-Red project, a new YAML-based logger was implemented to the runtime repo’s test source generators. Now, each test run outputs the usual Xml results file, as well as a new Yaml one alongside it. The motivation for this effort is that when a test run crashes and/or freezes terribly badly, we end up with an incomplete Xml file, which is not readable by parsers. On the other hand, even if it’s incomplete, a YAML file is still valid and parseable thanks to its lack of closing indicators.

What we need from Arcade

Add PyYAML version 5.3.1 to the list of requirements that have to be satisfied by pip in the Helix machines.

Why we need this

Now that we have our YAML-based logger, we have to “teach” the Helix machines how to interpret it (this will be done in a separate PR currently in the works). However, Python does not have native support for YAML processing, so we need an external library. For this purpose, we are opting to use PyYAML, which is one of the most stable and widely used YAML libraries for Python. And therefore, we need to have it installed on the machines that run the tests.

Detailed Information on the Project

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Add PyYaml to python packages preinstalled on Helix agents

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

0reactions
ivdiazsacommented, Dec 1, 2022

Thanks a lot @MattGal! I’ll let you know if we hit any issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install pyyaml using pip/Add PyYaml as pip dependency
Using Salem's answer as a guide, I was able to install PyYAML with libyaml bindings in Python 3.8 by doing the following:
Read more >
[User Story] CI Health: Redefining CI investigations and ...
Adding crashdump and hang dump in Libraries tests ... Add PyYAML 5.3.1 as a dependency to Helix machines running the Python scripts ......
Read more >
PyYAML 5.3.1
PyYAML is a YAML parser and emitter for Python. PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension ...
Read more >
PyYAML
PyYAML is a YAML parser and emitter for Python. PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension API,...
Read more >
homebrew-core
a2ps 4.15.5 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found