Add a "last_build_name" field to runner stats

RESOLVED FIXED

Status

RESOLVED FIXED
3 years ago
a year ago

People

(Reporter: mrrrgn, Assigned: mrrrgn)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

3 years ago
We can find the last build name by scraping twistd logs and surface it in runner's task hook. This will help us understand the behavior of machines before/after running various job types. It will also help us understand the performance of various jobs by machine type.
(Assignee)

Updated

3 years ago
Assignee: nobody → winter2718
(Assignee)

Comment 1

3 years ago
Created attachment 8600920 [details] [diff] [review]
last-build-name.diff

Tested via ansible deploy to all tst-linux64 hosts.
Attachment #8600920 - Flags: review?(catlee)
(Assignee)

Comment 2

3 years ago
Created attachment 8600928 [details] [diff] [review]
last-build-name.diff

The last patch had a comparison for determining if an array had elements which had a bug (< 0). This has been fixed (changed to < 1).
Attachment #8600920 - Attachment is obsolete: true
Attachment #8600920 - Flags: review?(catlee)
Attachment #8600928 - Flags: review?(catlee)
(Assignee)

Updated

3 years ago
Summary: Add a "last_build_name" field to taskcluster stats → Add a "last_build_name" field to runner stats
(Assignee)

Comment 3

3 years ago
~/projects/UTILS/INFLUXDB_QUERY.sh "select * from runner_tasks where hostname = 'bld-linux64-spot-1000.build.releng.use1.mozilla.com' limit 1"
[
    {
        "name": "runner_tasks",
        "columns": [
            "time",
            "sequence_number",
            "result",
            "hostname",
            "aws_instance_id",
            "task",
            "aws_instance_type",
            "placement/availability_zone",
            "foo",
            "last_build_name",
            "aws_ami_id",
            "platform",
            "max_retries",
            "try_num"
        ],
        "points": [
            [
                1430751221822,
                1000733040001,
                "RUNNING",
                "bld-linux64-spot-1000.build.releng.use1.mozilla.com",
                "i-d44ef202",
                "4-buildbot.py",
                "m3.xlarge",
                "us-east-1c",
                null,
                "Linux mozilla-inbound build",
                "ami-a85358c0",
                "linux2",
                5,
                1
            ]
        ]
    }
]

Updated

3 years ago
Attachment #8600928 - Flags: review?(catlee) → review+
(Assignee)

Updated

3 years ago
Attachment #8600928 - Flags: checked-in+
(Assignee)

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Component: Tools → General
Product: Release Engineering → Release Engineering
You need to log in before you can comment on or make changes to this bug.