Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/hydra
base: ba8814a245fe
Choose a base ref
...
head repository: NixOS/hydra
compare: 100e09a5b3cf
Choose a head ref
  • 13 commits
  • 49 files changed
  • 2 contributors

Commits on Feb 6, 2020

  1. sql: Generate models from postgresql

    Lowercasing is due to postgresql not having case-sensitive table names.
    It always technically workde before, but those table names never
    existed literally.
    
    The switch to generating from postgresql is to handle an upcoming
    addition of an auto-incrementign ID to the Jobset table. Sqlite doesn't
    seem to be able to handle the table having an auto incrementing ID
    field which isn't the primary key, but we can't change the primary
    key trivially.
    
    Since hydra doesn't support sqlite and hasn't for many year anyway,
    it is easier to just generate from pgsql directly.
    grahamc committed Feb 6, 2020
    Copy the full SHA
    c2f932a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #709 from grahamc/generate-from-postgresql

    sql: Generate models from postgresql
    edolstra committed Feb 6, 2020
    Copy the full SHA
    2b4f149 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2020

  1. Copy the flake migration from the flake branch

    hydra.nixos.org is already running this rev, and it should be safe to
    apply to everyone else. If we make changes to this migration, we'll
    need to write another migration anyway.
    grahamc committed Feb 9, 2020
    Copy the full SHA
    6fe57ab View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Merge pull request #713 from grahamc/backport-flake-migration

    Copy the flake migration from the flake branch
    edolstra committed Feb 10, 2020
    Copy the full SHA
    4a05bb3 View commit details
    Browse the repository at this point in the history
  2. Jobsets: add a SERIAL, unique, non-null id column

    A postgresql column which is non-null and unique is treated with
    the same optimisations as a primary key, so we have no need to
    try and recreate the `id` as the primary key.
    
    No read paths are impacted by this change, and the database will
    automatically create an ID for each insert. Thus, no code needs to
    change.
    grahamc committed Feb 10, 2020
    Copy the full SHA
    e000305 View commit details
    Browse the repository at this point in the history
  3. Jobs: add a nullable jobset_id foreign key to Jobsets.

    Also, adds an explicitly named "jobs" accessor to the Jobsets
    Schema object, which uses the project/jobset name.
    grahamc committed Feb 10, 2020
    Copy the full SHA
    efa1f1d View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    624f1d8 View commit details
    Browse the repository at this point in the history
  5. Builds: add a nullable jobset_id foreign key to Jobsets.

    Also, adds an explicitly named "builds" accessor to the Jobsets
    Schema object, which uses the project/jobset name.
    grahamc committed Feb 10, 2020
    Copy the full SHA
    ddf00fa View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    f3a561a View commit details
    Browse the repository at this point in the history
  7. hydra-backfill-ids: create to add jobset_id values to Builds and Jobs

    Vacuum every 10 iterations, update 10k at a time.
    grahamc committed Feb 10, 2020
    Copy the full SHA
    f692601 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    c4cc72f View commit details
    Browse the repository at this point in the history
  9. Merge pull request #711 from grahamc/jobset-id-pgsql-part-1

    jobset_id, #710 Part 1
    grahamc committed Feb 10, 2020
    Copy the full SHA
    add4f61 View commit details
    Browse the repository at this point in the history
  10. Merge remote-tracking branch 'origin/master' into flake

    Also update flake.lock
    edolstra committed Feb 10, 2020
    Copy the full SHA
    100e09a View commit details
    Browse the repository at this point in the history