No description
Find a file
Kat 5883f2613c
ci: Add TiCS token existence check (#260)
In certain contexts, such as when the workflow-triggering actor is
Dependabot or if running from a fork, secrets are not available. While
the codecov action handles this without causing a job failure, TiCS does
result in a job failure. Thus, here we introduce a conditional check
that skips TiCS if the secret is not set and instead log a warning.

By handling this in the `tics-condition` step, we also skip some then
unnecessary setup steps that have additional costs.

---
[UDENG-8089](https://warthogs.atlassian.net/browse/UDENG-8089)

[UDENG-8089]:
https://warthogs.atlassian.net/browse/UDENG-8089?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2025-10-10 12:20:28 -04:00
.github ci: Add TiCS token existence check (#260) 2025-10-10 12:20:28 -04:00
common deps(go-common): Bump github.com/spf13/viper 2025-09-17 13:54:32 +00:00
insights deps(go-insights): Bump golang.org/x/text 2025-10-09 09:05:48 +00:00
server deps(go-server): Bump github.com/prometheus/common 2025-10-09 09:05:46 +00:00
tools Switch to using go tool 2025-10-07 14:57:42 -04:00
.gitattributes Rename setup script to ubuntu-insights-initial-setup 2025-03-17 15:54:26 -04:00
.gitignore feat(insights): Implement packaging for shared libraries and development files 2025-08-08 09:34:31 -04:00
.golangci.yaml Update golangci-lint to v2 and migrate its config 2025-09-04 23:34:56 +02:00
CONTRIBUTING.md Enhance contributing guidelines with additional sections and clarity 2025-08-22 15:26:21 -04:00
go.work deps: Bump toolchain to 1.24.6 2025-08-07 12:36:53 -04:00
LICENSE Initial commit 2024-12-16 15:35:54 +01:00
README.md Add README for Ubuntu Insights Server Services 2025-06-26 14:45:51 -04:00
SECURITY.md docs: Add security policy and vulnerability reporting guidelines 2025-08-19 16:39:23 -04:00
ubuntu-insights-initial-setup Fix consent command to use 'linux' instead of 'ubuntu' to match runtime.GOOS 2025-03-19 16:49:54 -04:00

Welcome to Ubuntu Insights

Code quality License Code coverage Go Report Card

This is the code repository for Ubuntu Insights, a transparent, user-friendly, open, platform-agnostic, and cross-application solution for reporting hardware information and other collected metrics.

Ubuntu Insights is designed to show you exactly what is being sent, and allow you to acknowledge and control your own data. The code in this repository is designed to mainly be invoked by a controlling application, but a command-line tool is also provided.

Ubuntu Insights is designed to be a full replacement for Ubuntu Report and its server components are backwards compatible.

Components

Ubuntu Insights is divided into two components:

  • The client for local actions which consists of a command-line interface, as well as Go and C APIs. It is also packaged as a deb package. See insights
  • The server services which is what we use to aggregate reports. See server

Example Insights Reports

Ubuntu Desktop

{
  "insightsVersion": "Dev",
  "collectionTime": 1748013676,
  "systemInfo": {
    "hardware": {
      "product": {
        "family": "My Product Family",
        "name": "My Product Name",
        "vendor": "My Product Vendor"
      },
      "cpu": {
        "name": "9 1200SX",
        "vendor": "Authentic",
        "architecture": "x86_64",
        "cpus": 16,
        "sockets": 1,
        "coresPerSocket": 8,
        "threadsPerCore": 2
      },
      "gpus": [
        {
          "device": "0x0294",
          "vendor": "0x10df",
          "driver": "gpu"
        },
        {
          "device": "0x03ec",
          "vendor": "0x1003",
          "driver": "gpu"
        }
      ],
      "memory": {
        "size": 23247
      },
      "disks": [
        {
          "size": 1887436,
          "type": "disk",
          "children": [
            {
              "size": 750,
              "type": "part"
            },
            {
              "size": 260,
              "type": "part"
            },
            {
              "size": 16,
              "type": "part"
            },
            {
              "size": 1887436,
              "type": "part"
            },
            {
              "size": 869,
              "type": "part"
            },
            {
              "size": 54988,
              "type": "part"
            }
          ]
        }
      ],
      "screens": [
        {
          "physicalResolution": "2560x1440",
          "size": "600mm x 340mm",
          "refreshRate": "143.85"
        },
        {
          "physicalResolution": "2560x1600",
          "size": "300mm x 190mm",
          "refreshRate": "120.00"
        }
      ]
    },
    "software": {
      "os": {
        "family": "linux",
        "distribution": "Ubuntu",
        "version": "25.04"
      },
      "timezone": "EDT",
      "language": "en_US",
      "bios": {
        "vendor": "Bios Vendor",
        "version": "Bios Version"
      }
    },
    "platform": {
      "desktop": {
        "desktopEnvironment": "ubuntu:GNOME",
        "sessionName": "ubuntu",
        "sessionType": "wayland"
      },
      "proAttached": true
    }
  }
}

WSL

{
  "insightsVersion": "Dev",
  "collectionTime": 1748012492,
  "systemInfo": {
    "hardware": {
      "cpu": {
        "name": "AM Cirus 1200XK Processor",
        "vendor": "Authentic",
        "architecture": "x86_64",
        "cpus": 256,
        "sockets": 1,
        "coresPerSocket": 128,
        "threadsPerCore": 2
      },
      "memory": {
        "size": 15904
      },
      "disks": [
        {
          "size": 388,
          "type": "disk"
        },
        {
          "size": 185,
          "type": "disk"
        },
        {
          "size": 4096,
          "type": "disk"
        },
        {
          "size": 1048576,
          "type": "disk"
        },
        {
          "size": 1048576,
          "type": "disk"
        }
      ]
    },
    "software": {
      "os": {
        "family": "linux",
        "distribution": "Ubuntu",
        "version": "25.04"
      },
      "timezone": "EDT",
      "language": "en_GB"
    },
    "platform": {
      "wsl": {
        "subsystemVersion": 2,
        "systemd": "used",
        "interop": "enabled",
        "version": "2.5.7.0",
        "kernelVersion": "6.6.87.1-microsoft-standard-WSL2"
      },
      "proAttached": true
    }
  }
}
{
  "OptOut": true
}

Get involved

This is an open source project, and we warmly welcome community contributions, suggestions, and constructive feedback. If you're interested in contributing, please take a look at our Contribution guidelines first.

  • To report an issue, please file a bug report against our repository, using a bug template.
  • For suggestions and constructive feedback, open a feature request issue using the proposed template.

Get in touch

We're friendly! We have a community forum at https://discourse.ubuntu.com where we discuss feature plans, development news, issues, updates and troubleshooting.

For news and updates, follow the Ubuntu Twitter account and on Facebook.