Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Store jobset evaluations in the database explicitly. This includes
recording the builds that are part of a jobset evaluation. We need this to be able to answer queries such as "return the latest NixOS ISO for which the installation test succeeded". This wasn't previously possible because the database didn't record which builds of (say) the `isoMinimal' job and the `tests.installer.simple' job came from the same evaluation of the nixos:trunk jobset. Keeping a record of evaluations is also useful for logging purposes.
- Loading branch information
Showing
11 changed files
with
415 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
package Hydra::Schema::JobsetEvalMembers; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use base 'DBIx::Class::Core'; | ||
|
||
|
||
=head1 NAME | ||
Hydra::Schema::JobsetEvalMembers | ||
=cut | ||
|
||
__PACKAGE__->table("JobsetEvalMembers"); | ||
|
||
=head1 ACCESSORS | ||
=head2 eval | ||
data_type: integer | ||
default_value: undef | ||
is_foreign_key: 1 | ||
is_nullable: 0 | ||
size: undef | ||
=head2 build | ||
data_type: integer | ||
default_value: undef | ||
is_foreign_key: 1 | ||
is_nullable: 0 | ||
size: undef | ||
=head2 isnew | ||
data_type: integer | ||
default_value: undef | ||
is_nullable: 0 | ||
size: undef | ||
=cut | ||
|
||
__PACKAGE__->add_columns( | ||
"eval", | ||
{ | ||
data_type => "integer", | ||
default_value => undef, | ||
is_foreign_key => 1, | ||
is_nullable => 0, | ||
size => undef, | ||
}, | ||
"build", | ||
{ | ||
data_type => "integer", | ||
default_value => undef, | ||
is_foreign_key => 1, | ||
is_nullable => 0, | ||
size => undef, | ||
}, | ||
"isnew", | ||
{ | ||
data_type => "integer", | ||
default_value => undef, | ||
is_nullable => 0, | ||
size => undef, | ||
}, | ||
); | ||
__PACKAGE__->set_primary_key("eval", "build"); | ||
|
||
=head1 RELATIONS | ||
=head2 eval | ||
Type: belongs_to | ||
Related object: L<Hydra::Schema::JobsetEvals> | ||
=cut | ||
|
||
__PACKAGE__->belongs_to("eval", "Hydra::Schema::JobsetEvals", { id => "eval" }, {}); | ||
|
||
=head2 build | ||
Type: belongs_to | ||
Related object: L<Hydra::Schema::Builds> | ||
=cut | ||
|
||
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {}); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-03-05 13:07:46 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vwefi8q3HolhFCkB9aEVWw | ||
|
||
|
||
# You can replace this text with custom content, and it will be preserved on regeneration | ||
1; |
Oops, something went wrong.