Skip to content

Fix build_count to use SQL count instead of loading all records

772480a
Select commit
Loading
Failed to load commit list.
Open

Fix build_count memory leak #1407

Fix build_count to use SQL count instead of loading all records
772480a
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Mar 6, 2026 in 15m 47s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #1407 Fix build_count memory leak.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has four jobs, running in two sequential stages.

Stage 1: test

This stage passed.

Job Ruby ENV OS State
16623.1 3.2.2 PATH=/snap/bin:$PATH Linux passed
16623.2 3.2.2 PATH=/snap/bin:$PATH Linux passed
16623.3 3.2.2 PATH=/snap/bin:$PATH Linux passed

Stage 2: 🚢 it to Quay.io

This stage passed.

Job Ruby ENV OS State
16623.4 3.2.2 PATH=/snap/bin:$PATH Linux passed

Build Configuration

Build Option Setting
Language Ruby
Operating System Linux (Xenial)
Ruby Version 3.2.2
Build Configuration
{
  "language": "ruby",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "group": "edge",
  "rvm": [
    "3.2.2"
  ],
  "script": [
    "bundle exec rake knapsack:rspec"
  ],
  "env": [
    "global={:PATH=>\"/snap/bin:$PATH\"}={:RUBY_GC_MALLOC_LIMIT=>\"90000000\"}={:RUBY_GC_HEAP_FREE_SLOTS=>\"200000\"}={:CI_NODE_TOTAL=>\"3\"} jobs={:CI_NODE_INDEX=>\"0\"}={:CI_NODE_INDEX=>\"1\"}={:CI_NODE_INDEX=>\"2\"}"
  ],
  "services": [
    "redis"
  ],
  "before_install": [
    "sudo apt-get install -yq --no-install-suggests --no-install-recommends postgresql-common",
    "sudo service postgresql stop",
    "sudo apt install -yq --no-install-suggests --no-install-recommends postgresql-11 postgresql-client-11",
    "sed -e 's/^port.*/port = 5432/' /etc/postgresql/11/main/postgresql.conf > postgresql.conf",
    "sudo chown postgres postgresql.conf",
    "sudo mv postgresql.conf /etc/postgresql/11/main",
    "sudo cp /etc/postgresql/{10,11}/main/pg_hba.conf",
    "sudo service postgresql stop",
    "sudo systemctl start postgresql@11-main",
    "gem install rubygems-update -v 3.4.22",
    "gem update --system"
  ],
  "install": [
    "bundle install --jobs=3 --retry=3"
  ],
  "jobs": {
    "include": [
      {
        "stage": ":ship: it to Quay.io",
        "addons": {
          "snaps": [
            {
              "name": "docker",
              "channel": "latest/stable"
            }
          ]
        },
        "install": [
          "echo skip"
        ],
        "before_script": [
          "echo skip"
        ],
        "script": [
          "make ship"
        ],
        "if": "commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true or branch = master"
      }
    ]
  },
  "before_script": [
    "psql --version",
    "psql -c 'CREATE DATABASE travis_test;' -U postgres",
    "psql -t -c \"SELECT 1 FROM pg_roles WHERE rolname='travis'\" -U postgres | grep 1 || psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres",
    "curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test"
  ]
}