Skip to content

Instantly share code, notes, and snippets.

View bhcopeland's full-sized avatar

Benjamin Copeland bhcopeland

View GitHub Profile
['DEFAULT_MAPPING_TAG', 'DEFAULT_SCALAR_TAG', 'DEFAULT_SEQUENCE_TAG', 'DEFAULT_TAGS', 'ESCAPE_CODES', 'ESCAPE_REPLACEMENTS', 'NON_PRINTABLE', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_get_non_printable', '_get_non_printable_ascii', '_get_non_printable_regex', '_printable_ascii', 'add_constructor', 'add_implicit_resolver', 'add_implicit_resolver_base', 'add_indent', 'add_multi_constructor', 'add_path_resolver', 'add_version_implicit_resolver', 'ascend_resolver', 'bool_values', 'check_block_entry', 'check_data', 'check_directive', 'check_document_end', 'check_document_start', 'check_end_doc_comment', 'check_event', 'check_key', 'check_mapping_key', 'check_node', 'check_plain', 'check_printable', 'check_resolver_p
['Composer', 'Constructor', 'Emitter', 'Parser', 'Reader', 'Representer', 'Resolver', 'Scanner', 'Serializer', 'Xdump_all', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__enter__', '__eq__', '__exit__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_context_manager', '_indent', '_output', 'allow_duplicate_keys', 'allow_unicode', 'block_seq_indent', 'brace_single_entry_mapping_in_flow_sequence', 'canonical', 'compact', 'compact_seq_map', 'compact_seq_seq', 'composer', 'constructor', 'default_flow_style', 'default_style', 'dump', 'dump_all', 'emitter', 'encoding', 'explicit_end', 'explicit_start', 'get_constructor_parser', 'get_serializer_representer_emitter', 'indent', 'line_break', 'load', 'load_all', 'map', 'map_indent', 'official_plug_ins', 'old_indent', 'parse', 'pa
diff --git a/submit_for_testing.py b/submit_for_testing.py
index 90183cb..c2b1d94 100755
--- a/submit_for_testing.py
+++ b/submit_for_testing.py
@@ -330,7 +330,7 @@ def main():
with open(variables, "r") as vars_file:
try:
yaml = YAML()
- context.update(yaml.load(vars_file))
+ context.update(yaml.load(vars_file, Loader=yaml.SafeLoader))
#!/usr/bin/env python3
import argparse
import fnmatch
import itertools
import os
import re
import requests
import sys
from configobj import ConfigObj, ConfigObjError
{
"format_version":"0.1",
"terraform_version":"0.12.28",
"variables":{
"ami_key_pair_name":{
"value":"systems-bot-ssh"
},
"route53_zone_id":{
"value":"Z2GJ2XIMVV5TPO"
}
Traceback (most recent call last):
File stable_report.py, line 445, in <module>
sys.exit(main())
File stable_report.py, line 437, in main
result = function(squad, args)
File /home/ben/ownCloud/Linaro/kv/lkft-stable-report/utils/reports.py, line 287, in send_reports
msg = email.message_from_bytes(bytearray(f.read(), utf-8))
NameError: name 'email' is not defined
Invalid job data: ["Resource unavailable at 'https://builds.tuxbuild.com/_CnOG6FbGrHVYS5QAhc7dg/Image' (404)"]
sets:
- name: multi-toolchain
builds:
- {target_arch: arm, toolchain: gcc-8, kconfig: ["defconfig", "CONFIG_QEMU=y"]}
- {target_arch: arm, toolchain: gcc-9, kconfig: ["defconfig", "CONFIG_QEMU=y"]}
- {target_arch: arm64, toolchain: gcc-8, kconfig: ["defconfig", "CONFIG_QEMU=y"]}
- {target_arch: arm64, toolchain: gcc-9, kconfig: ["defconfig", "CONFIG_QEMU=y"]}
[
{
"build_key": "_CnOG6FbGrHVYS5QAhc7dg",
"build_status": "pass",
"download_url": "https://builds.tuxbuild.com/_CnOG6FbGrHVYS5QAhc7dg/",
"errors_count": 0,
"git_describe": "v5.3-rc4-1-g14626a244b97",
"git_sha": "14626a244b976271b725b8cfad5e85217add14b7",
"git_short_log": "14626a244b97 (\"Break the build for arm64\")",
"status_message": "build completed",
[
{
"build_key": "13-ll5ajAAGgWOKKypsnsA",
"build_status": "fail",
"download_url": "https://builds.tuxbuild.com/13-ll5ajAAGgWOKKypsnsA/",
"errors_count": 1,
"git_describe": "",
"git_sha": "",
"git_short_log": "",
"status_message": "specified remote: https://github.com/Linaro/linux-canaries/tree/arm64_build_broken does not exist",