|
1
|
|
package edu.ucsb.cs156.frontiers.jobs; |
|
2
|
|
|
|
3
|
|
import edu.ucsb.cs156.frontiers.entities.Course; |
|
4
|
|
import edu.ucsb.cs156.frontiers.entities.Team; |
|
5
|
|
import edu.ucsb.cs156.frontiers.enums.PullRequestCreationPolicy; |
|
6
|
|
import edu.ucsb.cs156.frontiers.enums.RepositoryPermissions; |
|
7
|
|
import edu.ucsb.cs156.frontiers.services.GithubTeamService; |
|
8
|
|
import edu.ucsb.cs156.frontiers.services.RepositoryService; |
|
9
|
|
import edu.ucsb.cs156.frontiers.services.RepositoryService.RepositoryCreationResult; |
|
10
|
|
import edu.ucsb.cs156.jobs.services.JobContext; |
|
11
|
|
import edu.ucsb.cs156.jobs.services.JobContextConsumer; |
|
12
|
|
import java.util.Optional; |
|
13
|
|
import lombok.Builder; |
|
14
|
|
import org.springframework.web.client.HttpStatusCodeException; |
|
15
|
|
|
|
16
|
|
@Builder |
|
17
|
|
public class CreateTeamRepositoriesJob implements JobContextConsumer { |
|
18
|
|
Course course; |
|
19
|
|
RepositoryService repositoryService; |
|
20
|
|
GithubTeamService githubTeamService; |
|
21
|
|
String repositoryPrefix; |
|
22
|
|
Boolean isPrivate; |
|
23
|
|
RepositoryPermissions permissions; |
|
24
|
|
String teamRegex; |
|
25
|
|
|
|
26
|
|
/** |
|
27
|
|
* Whether the repositories must require signed commits: true gives each repository the ruleset |
|
28
|
|
* that requires them, false removes it. Null, as for a caller that does not manage this, leaves |
|
29
|
|
* the repositories' rulesets alone. |
|
30
|
|
*/ |
|
31
|
|
Boolean requireSignedCommit; |
|
32
|
|
|
|
33
|
|
/** |
|
34
|
|
* Whether pull requests on the repositories are restricted to users with Write access: true |
|
35
|
|
* restricts them, false lifts the restriction. Null, as for a caller that does not manage this, |
|
36
|
|
* leaves the repositories' setting alone. |
|
37
|
|
*/ |
|
38
|
|
Boolean restrictPrsToContributors; |
|
39
|
|
|
|
40
|
|
@Override |
|
41
|
|
public String getScopeType() { |
|
42
|
1
1. getScopeType : replaced return value with "" for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::getScopeType → KILLED
|
return "course"; |
|
43
|
|
} |
|
44
|
|
|
|
45
|
|
@Override |
|
46
|
|
public Long getScopeId() { |
|
47
|
1
1. getScopeId : replaced Long return value with 0L for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::getScopeId → KILLED
|
return course.getId(); |
|
48
|
|
} |
|
49
|
|
|
|
50
|
|
@Override |
|
51
|
|
public void accept(JobContext ctx) throws Exception { |
|
52
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("Creating team repositories..."); |
|
53
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("repositoryPrefix=" + repositoryPrefix); |
|
54
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("isPrivate=" + isPrivate); |
|
55
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("permissions=" + permissions); |
|
56
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("teamRegex=" + teamRegex); |
|
57
|
1
1. accept : negated conditional → KILLED
|
if (requireSignedCommit != null) { |
|
58
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("requireSignedCommit=" + requireSignedCommit); |
|
59
|
|
} |
|
60
|
1
1. accept : negated conditional → KILLED
|
if (restrictPrsToContributors != null) { |
|
61
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("restrictPrsToContributors=" + restrictPrsToContributors); |
|
62
|
|
} |
|
63
|
|
|
|
64
|
|
Integer orgId; |
|
65
|
|
try { |
|
66
|
|
orgId = githubTeamService.getOrgId(course.getOrgName(), course); |
|
67
|
|
} catch (Exception e) { |
|
68
|
|
throw new IllegalStateException( |
|
69
|
|
"Failed to get organization ID for org: " + course.getOrgName() + " - " + e.getMessage(), |
|
70
|
|
e); |
|
71
|
|
} |
|
72
|
|
|
|
73
|
|
int reposCreated = 0; |
|
74
|
|
int reposUpdated = 0; |
|
75
|
|
int signedCommitsFailures = 0; |
|
76
|
|
int prPolicyFailures = 0; |
|
77
|
|
|
|
78
|
|
for (Team team : course.getTeams()) { |
|
79
|
|
// A team skipped by teamRegex never logs anything -- checkCancellation() gives this |
|
80
|
|
// loop its own checkpoint independent of whether an iteration does any work. |
|
81
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::checkCancellation → KILLED
|
ctx.checkCancellation(); |
|
82
|
2
1. accept : negated conditional → KILLED
2. accept : negated conditional → KILLED
|
if (teamRegex != null && !team.getName().matches(teamRegex)) { |
|
83
|
|
continue; |
|
84
|
|
} |
|
85
|
|
Optional<RepositoryCreationResult> result = |
|
86
|
|
repositoryService.createTeamRepository( |
|
87
|
|
course, team, repositoryPrefix, isPrivate, permissions, orgId); |
|
88
|
1
1. accept : negated conditional → KILLED
|
if (result.isPresent()) { |
|
89
|
1
1. accept : negated conditional → KILLED
|
if (result.get().created()) { |
|
90
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log(" created repo " + result.get().repoName()); |
|
91
|
1
1. accept : Changed increment from 1 to -1 → KILLED
|
reposCreated++; |
|
92
|
|
} else { |
|
93
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log(" updated repo " + result.get().repoName()); |
|
94
|
1
1. accept : Changed increment from 1 to -1 → KILLED
|
reposUpdated++; |
|
95
|
|
} |
|
96
|
1
1. accept : negated conditional → KILLED
|
if (!applySignedCommits(ctx, result.get().repoName())) { |
|
97
|
1
1. accept : Changed increment from 1 to -1 → KILLED
|
signedCommitsFailures++; |
|
98
|
|
} |
|
99
|
1
1. accept : negated conditional → KILLED
|
if (!applyPullRequestPolicy(ctx, result.get().repoName())) { |
|
100
|
1
1. accept : Changed increment from 1 to -1 → KILLED
|
prPolicyFailures++; |
|
101
|
|
} |
|
102
|
|
} |
|
103
|
|
} |
|
104
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("Summary:"); |
|
105
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log(String.format("%4d repos created", reposCreated)); |
|
106
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log(String.format("%4d repos updated", reposUpdated)); |
|
107
|
2
1. accept : Replaced integer addition with subtraction → KILLED
2. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log(String.format("%4d repos total", reposCreated + reposUpdated)); |
|
108
|
2
1. accept : negated conditional → KILLED
2. accept : changed conditional boundary → KILLED
|
if (signedCommitsFailures > 0) { |
|
109
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log( |
|
110
|
|
String.format("%4d repos where signed commits could not be set", signedCommitsFailures)); |
|
111
|
|
} |
|
112
|
2
1. accept : changed conditional boundary → KILLED
2. accept : negated conditional → KILLED
|
if (prPolicyFailures > 0) { |
|
113
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log( |
|
114
|
|
String.format( |
|
115
|
|
"%4d repos where the pull request policy could not be set", prPolicyFailures)); |
|
116
|
|
} |
|
117
|
1
1. accept : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log("Done"); |
|
118
|
|
} |
|
119
|
|
|
|
120
|
|
/** |
|
121
|
|
* Makes a repository require signed commits, or not, as this job is set to; does nothing if it is |
|
122
|
|
* not set either way. A refusal by GitHub is logged, and does not stop the job. |
|
123
|
|
* |
|
124
|
|
* @return false if GitHub refused, true otherwise |
|
125
|
|
*/ |
|
126
|
|
private boolean applySignedCommits(JobContext ctx, String repoName) throws Exception { |
|
127
|
1
1. applySignedCommits : negated conditional → KILLED
|
if (requireSignedCommit == null) { |
|
128
|
1
1. applySignedCommits : replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applySignedCommits → KILLED
|
return true; |
|
129
|
|
} |
|
130
|
|
try { |
|
131
|
1
1. applySignedCommits : removed call to edu/ucsb/cs156/frontiers/services/RepositoryService::setSignedCommitsRequired → KILLED
|
repositoryService.setSignedCommitsRequired(course, repoName, requireSignedCommit); |
|
132
|
1
1. applySignedCommits : replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applySignedCommits → KILLED
|
return true; |
|
133
|
|
} catch (HttpStatusCodeException e) { |
|
134
|
1
1. applySignedCommits : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log( |
|
135
|
|
" could not " |
|
136
|
1
1. applySignedCommits : negated conditional → KILLED
|
+ (requireSignedCommit ? "require" : "stop requiring") |
|
137
|
|
+ " signed commits on " |
|
138
|
|
+ repoName |
|
139
|
|
+ ": " |
|
140
|
|
+ e.getStatusCode() |
|
141
|
|
+ " " |
|
142
|
|
+ e.getResponseBodyAsString()); |
|
143
|
1
1. applySignedCommits : replaced boolean return with true for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applySignedCommits → KILLED
|
return false; |
|
144
|
|
} |
|
145
|
|
} |
|
146
|
|
|
|
147
|
|
/** |
|
148
|
|
* Restricts pull requests on a repository to users with Write access, or lifts that restriction, |
|
149
|
|
* as this job is set to; does nothing if it is not set either way. A refusal by GitHub is logged, |
|
150
|
|
* and does not stop the job. |
|
151
|
|
* |
|
152
|
|
* @return false if GitHub refused, true otherwise |
|
153
|
|
*/ |
|
154
|
|
private boolean applyPullRequestPolicy(JobContext ctx, String repoName) throws Exception { |
|
155
|
1
1. applyPullRequestPolicy : negated conditional → KILLED
|
if (restrictPrsToContributors == null) { |
|
156
|
1
1. applyPullRequestPolicy : replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applyPullRequestPolicy → KILLED
|
return true; |
|
157
|
|
} |
|
158
|
|
try { |
|
159
|
1
1. applyPullRequestPolicy : removed call to edu/ucsb/cs156/frontiers/services/RepositoryService::setPullRequestCreationPolicy → KILLED
|
repositoryService.setPullRequestCreationPolicy( |
|
160
|
|
course, |
|
161
|
|
repoName, |
|
162
|
1
1. applyPullRequestPolicy : negated conditional → KILLED
|
restrictPrsToContributors |
|
163
|
|
? PullRequestCreationPolicy.COLLABORATORS_ONLY |
|
164
|
|
: PullRequestCreationPolicy.ALL); |
|
165
|
1
1. applyPullRequestPolicy : replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applyPullRequestPolicy → KILLED
|
return true; |
|
166
|
|
} catch (HttpStatusCodeException e) { |
|
167
|
1
1. applyPullRequestPolicy : removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
ctx.log( |
|
168
|
|
" could not " |
|
169
|
1
1. applyPullRequestPolicy : negated conditional → KILLED
|
+ (restrictPrsToContributors ? "restrict" : "stop restricting") |
|
170
|
|
+ " pull requests on " |
|
171
|
|
+ repoName |
|
172
|
|
+ ": " |
|
173
|
|
+ e.getStatusCode() |
|
174
|
|
+ " " |
|
175
|
|
+ e.getResponseBodyAsString()); |
|
176
|
1
1. applyPullRequestPolicy : replaced boolean return with true for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applyPullRequestPolicy → KILLED
|
return false; |
|
177
|
|
} |
|
178
|
|
} |
|
179
|
|
} |
| | Mutations |
| 42 |
|
1.1 Location : getScopeType Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:test_getScope_returnsCourseScope()] replaced return value with "" for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::getScopeType → KILLED
|
| 47 |
|
1.1 Location : getScopeId Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:test_getScope_returnsCourseScope()] replaced Long return value with 0L for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::getScopeId → KILLED
|
| 52 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 53 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 54 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 55 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 56 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 57 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] negated conditional → KILLED
|
| 58 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:requireSignedCommit_false_is_logged_and_clears_the_rule_on_the_repos()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 60 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] negated conditional → KILLED
|
| 61 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 81 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:checkCancellation_stops_the_team_loop_before_calling_repositoryService()] removed call to edu/ucsb/cs156/jobs/services/JobContext::checkCancellation → KILLED
|
| 82 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] negated conditional → KILLED
2.2 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] negated conditional → KILLED
|
| 88 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_repo_whose_creation_failed_gets_no_pr_policy_call()] negated conditional → KILLED
|
| 89 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] negated conditional → KILLED
|
| 90 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 91 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] Changed increment from 1 to -1 → KILLED
|
| 93 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 94 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] Changed increment from 1 to -1 → KILLED
|
| 96 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] negated conditional → KILLED
|
| 97 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_refusal_to_clear_the_rule_says_so()] Changed increment from 1 to -1 → KILLED
|
| 99 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_null_leaves_the_repos_alone_and_is_not_logged()] negated conditional → KILLED
|
| 100 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_repo_that_github_refuses_the_pr_policy_for_is_logged_and_the_job_carries_on()] Changed increment from 1 to -1 → KILLED
|
| 104 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 105 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 106 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 107 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] Replaced integer addition with subtraction → KILLED
2.2 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 108 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] negated conditional → KILLED
2.2 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] changed conditional boundary → KILLED
|
| 109 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_refusal_to_clear_the_rule_says_so()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 112 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] changed conditional boundary → KILLED
2.2 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] negated conditional → KILLED
|
| 113 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_repo_that_github_refuses_the_pr_policy_for_is_logged_and_the_job_carries_on()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 117 |
|
1.1 Location : accept Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:testCreateTeamRepository_withRegex_noMatches()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 127 |
|
1.1 Location : applySignedCommits Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_null_leaves_the_repos_alone_and_is_not_logged()] negated conditional → KILLED
|
| 128 |
|
1.1 Location : applySignedCommits Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applySignedCommits → KILLED
|
| 131 |
|
1.1 Location : applySignedCommits Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:requireSignedCommit_false_is_logged_and_clears_the_rule_on_the_repos()] removed call to edu/ucsb/cs156/frontiers/services/RepositoryService::setSignedCommitsRequired → KILLED
|
| 132 |
|
1.1 Location : applySignedCommits Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:requireSignedCommit_true_is_logged_and_applied_to_created_and_updated_repos()] replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applySignedCommits → KILLED
|
| 134 |
|
1.1 Location : applySignedCommits Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_refusal_to_clear_the_rule_says_so()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 136 |
|
1.1 Location : applySignedCommits Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_refusal_to_clear_the_rule_says_so()] negated conditional → KILLED
|
| 143 |
|
1.1 Location : applySignedCommits Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_refusal_to_clear_the_rule_says_so()] replaced boolean return with true for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applySignedCommits → KILLED
|
| 155 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_null_leaves_the_repos_alone_and_is_not_logged()] negated conditional → KILLED
|
| 156 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_null_leaves_the_repos_alone_and_is_not_logged()] replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applyPullRequestPolicy → KILLED
|
| 159 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] removed call to edu/ucsb/cs156/frontiers/services/RepositoryService::setPullRequestCreationPolicy → KILLED
|
| 162 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] negated conditional → KILLED
|
| 165 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:restrictPrsToContributors_true_is_logged_and_applied_to_created_and_updated_repos()] replaced boolean return with false for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applyPullRequestPolicy → KILLED
|
| 167 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_repo_that_github_refuses_the_pr_policy_for_is_logged_and_the_job_carries_on()] removed call to edu/ucsb/cs156/jobs/services/JobContext::log → KILLED
|
| 169 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_repo_that_github_refuses_the_pr_policy_for_is_logged_and_the_job_carries_on()] negated conditional → KILLED
|
| 176 |
|
1.1 Location : applyPullRequestPolicy Killed by : edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.jobs.CreateTeamRepositoriesJobTest]/[method:a_repo_that_github_refuses_the_pr_policy_for_is_logged_and_the_job_carries_on()] replaced boolean return with true for edu/ucsb/cs156/frontiers/jobs/CreateTeamRepositoriesJob::applyPullRequestPolicy → KILLED
|