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 - Branch succeeded Mar 6, 2026 in 6m 41s

Build Passed

The build passed.

Details

This is a normal build for the fix/build-count-memory-leak branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build has three jobs, running in parallel.

Job Ruby ENV OS State
16622.1 3.2.2 PATH=/snap/bin:$PATH Linux passed
16622.2 3.2.2 PATH=/snap/bin:$PATH Linux passed
16622.3 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"
  ]
}