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: 4a05bb36ac01
Choose a base ref
...
head repository: NixOS/hydra
compare: add4f610ce6f
Choose a head ref
  • 8 commits
  • 11 files changed
  • 1 contributor

Commits on Feb 10, 2020

  1. 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
  2. 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
  3. Copy the full SHA
    624f1d8 View commit details
    Browse the repository at this point in the history
  4. 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
  5. Copy the full SHA
    f3a561a View commit details
    Browse the repository at this point in the history
  6. 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
  7. Copy the full SHA
    c4cc72f View commit details
    Browse the repository at this point in the history
  8. 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