Skip to content

Instantly share code, notes, and snippets.

drue@nuc:~$ lavacli jobs queue --start 1200
Jobs (from 1201 to 1225):
* 1693709: qa-reports-bot (ulfh-mmc-fixes--ltp-containers-fixes-697262806) - juno-r2
* 1693708: qa-reports-bot (ulfh-mmc-fixes--ltp-cap_bounds-cpuhotplug-crypto-fixes-697262806) - juno-r2
* 1693704: qa-reports-bot (ulfh-mmc-fixes--ltp-fs-fixes-697262806) - juno-r2
* 1693701: qa-reports-bot (ulfh-mmc-fixes--ltp-syscalls-fixes-697262806) - juno-r2
* 1693700: qa-reports-bot (ulfh-mmc-fixes--ltp-nptl-pty-securebits-fixes-697262806) - juno-r2
* 1693699: qa-reports-bot (ulfh-mmc-fixes--libgpiod-fixes-697262806) - juno-r2
* 1693697: qa-reports-bot (ulfh-mmc-fixes--ltp-syscalls-fixes-697262807) - juno-r2
* 1693541: qa-reports-bot (linux-debug--ltp-syscalls-frag-next-20200821-697010872) - juno-r2
{
"build": {
"targets": [
"config",
"kernel",
"modules",
"dtbs"
],
"target_arch": "x86_64",
"toolchain": "gcc",
Cleaning targets:
clean - Remove most generated files but keep the config and
enough build support to build external modules
mrproper - Remove all generated files + config + various backup files
distclean - mrproper + remove editor backup and patch files
Configuration targets:
config - Update current config utilising a line-oriented program
nconfig - Update current config utilising a ncurses menu based program
menuconfig - Update current config utilising a menu based program

Summary

x86, kselftest

  • total 309
  • pass: 159
  • fail: 119
  • skip: 31
  • xfail: 0

x86, kselftest-vsyscall-mode-native

  • total 311
  • pass: 159
import requests
def get_instance_id():
r = requests.get("http://169.254.169.254/latest/meta-data/instance-id/")
return r.text
class Foo:
_instance_id = None
@property
drue@xps:~/src/linux-mainline$ git show -s --abbrev-commit --abbrev=12 --pretty=format:'%h' v5.6
tag v5.6
Tagger: Linus Torvalds <torvalds@linux-foundation.org>
Linux 5.6
-----BEGIN PGP SIGNATURE-----
iQFSBAABCAA8FiEEq68RxlopcLEwq+PEeb4+QwBBGIYFAl6BIG4eHHRvcnZhbGRz
QGxpbnV4LWZvdW5kYXRpb24ub3JnAAoJEHm+PkMAQRiGlHUH/RCFve2sfHRPjRW+
xR5SaLVAw6XKvtKBq7yvKmHEwqNJnL79IHyqqtSrtfFr2FfaH/KvYiCbbAezvSrM
root@ip-172-31-30-197:/var/log/amazon/amazon-cloudwatch-agent# cat /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json
{
"agent": {
"metrics_collection_interval": 60,
"run_as_user": "cwagent"
},
"metrics": {
"append_dimensions": {
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
"ImageId": "${aws:ImageId}",
import tuxbuild
params = {
"git_repo": "https://github.com/torvalds/linux.git",
"git_ref": "master",
"target_arch": "arm64",
"toolchain": "gcc-9",
"kconfig": [
"defconfig"
],
}
import os
import re
import requests
def get_file(path):
if re.search(r'https?://', path):
request = requests.get(path)
request.raise_for_status()
contents = request.content
with open('somefile', 'wb') as f:
@danrue
danrue / foo.py
Last active March 30, 2020 16:40
class BuildDefinition:
def __init__(self, kconfig, build_key, username, receipt_handle=None):
self.kconfig = kconfig
self.build_key = build_key
self.username = username
self.receipt_handle = receipt_handle
@classmethod
def from_dict(cls, build_dict):
return cls(