GitInput: Include deepClone option in the cache key
[?]
Jun 15, 2021, 8:31 AM
QPTEVLEO6L6VII42UNKTIOGXVK27BOWNMEVO7ZPRTYV6AVZTATXQCDependencies
- [2]
IGR322YPsql: Generate models from postgresql - [3]
BK24VA6Q* for git inputs, check latest revision of branch (defaults to master for now), if there is change, only use input if last checkout was > hour ago. - [4]
FGQPXZIXhydra: make nr of build to keep configurable per jobset - [5]
O25D52TAinitial support for mercurial - [6]
JAH3UPWASupport revision control systems via plugins - [7]
JTRG7RDQadd support for git as jobinput - [8]
SB2V735VKeep track of the database schema version - [9]
Q5HZWFCYAdd support for darcs repositories. - [10]
JM3DPYOMgenerated schema with new dbix class schema loader, grrrrrr - [11]
B7KDPCRLPrevent inputs from being garbage collected during evaluation - [12]
JJT5QG3Kremove revision from cached cvs inputs, and added missing files - [13]
LZVO64YGMerge in the first bits of the API work - [14]
3BTJRSU3GitInput.pm: Don't do a chdir to the Git clone - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- replacement in src/lib/Hydra/Plugin/GitInput.pm at line 185
{uri => $uri, branch => $branch, revision => $revision},{uri => $uri, branch => $branch, revision => $revision, isdeepclone => defined($deepClone) ? 1 : 0}, - edit in src/lib/Hydra/Plugin/GitInput.pm at line 226
, isdeepclone => defined($deepClone) ? 1 : 0 - edit in src/lib/Hydra/Schema/CachedGitInputs.pm at line 51
is_nullable: 0=head2 isdeepclonedata_type: 'boolean' - edit in src/lib/Hydra/Schema/CachedGitInputs.pm at line 77
"isdeepclone",{ data_type => "boolean", is_nullable => 0 }, - edit in src/lib/Hydra/Schema/CachedGitInputs.pm at line 95
=item * L</isdeepclone> - replacement in src/lib/Hydra/Schema/CachedGitInputs.pm at line 101
__PACKAGE__->set_primary_key("uri", "branch", "revision");__PACKAGE__->set_primary_key("uri", "branch", "revision", "isdeepclone"); - replacement in src/lib/Hydra/Schema/CachedGitInputs.pm at line 104
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-06 12:22:36# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0sdK9uQZpx869oqS5thRLw# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-19 17:26:24# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wr0grsFTaqRlMeM9vpXjrw - edit in src/sql/hydra.sql at line 405
isDeepClone boolean not null, - replacement in src/sql/hydra.sql at line 408
primary key (uri, branch, revision)primary key (uri, branch, revision, isDeepClone) - file addition: upgrade-76.sql[17.3004]
-- We don't know if existing checkouts are deep clones. This will-- force a new fetch (and most likely trigger a new build for deep-- clones, as the binary contents of '.git' are not deterministic).DELETE FROM CachedGitInputs;ALTER TABLE CachedGitInputsADD COLUMN isDeepClone BOOLEAN NOT NULL;ALTER TABLE CachedGitInputs DROP CONSTRAINT cachedgitinputs_pkey;ALTER TABLE CachedGitInputs ADD CONSTRAINT cachedgitinputs_pkeyPRIMARY KEY (uri, branch, revision, isDeepClone);