Skip to content

Commit

Permalink
Periodic update.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengillie committed Dec 27, 2024
1 parent f8995a9 commit 74b827f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
9 changes: 8 additions & 1 deletion Tools/ManualValidationPipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ 17. Status bar (pending)
namespace WinGetApprovalNamespace {
public class WinGetApprovalPipeline : Form {
//vars
public int build = 923;//Get-RebuildPipeApp
public int build = 924;//Get-RebuildPipeApp
public string appName = "WinGetApprovalPipeline";
public string appTitle = "WinGet Approval Pipeline - Build ";
public static string owner = "microsoft";
Expand Down Expand Up @@ -1798,6 +1798,7 @@ public dynamic SearchGitHub(string Preset, int Page = 1,int Days = 0,bool IEDS =
string string_nHW = "-label:Hardware+";
string IEDSLabel = "label:Internal-Error-Dynamic-Scan+";
string nIEDS = "-"+IEDSLabel;
string nMMC = "-label:Manifest-Metadata-Consistency+";
string string_IEM = "label:Internal-Error-Manifest+";
string string_NA = "label:Needs-Attention+";
string string_NAF = "label:Needs-Author-Feedback+";
Expand Down Expand Up @@ -1840,6 +1841,10 @@ public dynamic SearchGitHub(string Preset, int Page = 1,int Days = 0,bool IEDS =
Review2 += "-"+string_NAF;
Review2 += "-label:Needs-Review+";

string Approvable = "-label:Validation-Merge-Conflict+" ;
Approvable += "-label:Manifest-Version-Error+";
Approvable += "-label:Unexpected-File+";

string Workable = "-label:Highest-Version-Removal+";
Workable += "-label:Manifest-Version-Error+";
Workable += "-label:Validation-Certificate-Root+";
Expand Down Expand Up @@ -1877,6 +1882,8 @@ public dynamic SearchGitHub(string Preset, int Page = 1,int Days = 0,bool IEDS =
if (Preset == "Approval") {
Url += Cna;
Url += Set2; //Blocking + Common + Review1 + Review2;
Url += Approvable;
Url += nMMC;
Url += Workable;
Url += " sort:created-asc";
} else if (Preset == "Defender") {
Expand Down
8 changes: 4 additions & 4 deletions Tools/ManualValidationPipeline.csv
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
"dundee.gdu","dundee","should","manual","","","0","","0","0","",
"dustinblackman.oatmeal","dustinblackman","should","manual","","","","","","","",
"DVSTSEOOD.QOps","qops-hub","should","manual","Validation-No-Executables","","","","","","",
"DuckStudio.FufuTools","Luna-Grace/fjwxzde/DuckDuckStudio","must","","","","","","","",
"DuckStudio.FufuDevTools","Luna-Grace/fjwxzde/DuckDuckStudio","must","","","","","","","",
"DuckStudio.ChineseGit","Luna-Grace/fjwxzde/DuckDuckStudio","must","","","","","","","",
"DuckStudio.GitHubLabelsManager","Luna-Grace/fjwxzde/DuckDuckStudio","must","","","","","","","",
"DuckStudio.FufuTools","Luna-Grace/fjwxzde/DuckDuckStudio","should","","","","","","","",
"DuckStudio.FufuDevTools","Luna-Grace/fjwxzde/DuckDuckStudio","should","","","","","","","",
"DuckStudio.ChineseGit","Luna-Grace/fjwxzde/DuckDuckStudio","should","","","","","","","",
"DuckStudio.GitHubLabelsManager","Luna-Grace/fjwxzde/DuckDuckStudio","should","","","","","","","",
"EFIBootEditor.EFIBootEditor","EFIBootEditorBot","should","auto","","","","","","","",
"EliWeitzman.ETT","eliweitzman","should","auto","","","","","","","",
"Emurasoft.EmEditor","yutakaemura","should","auto","","","","","","","",
Expand Down
21 changes: 18 additions & 3 deletions Tools/ManualValidationPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Function Get-TrackerVMRunTracker {
[console]::beep(500,250);[console]::beep(500,250);[console]::beep(500,250) #Beep 3x to alert the PC user.
$PresetList = ("Defender","ToWork2")
$Host.UI.RawUI.WindowTitle = "Periodic Run"
(Get-SearchGitHub -Preset IEDS).number | Get-Random |%{Get-PRLabelAction $_} #Restart an IEDS PR
#(Get-SearchGitHub -Preset IEDS).number | Get-Random |%{Get-PRLabelAction $_} #Restart an IEDS PR
foreach ($Preset in $PresetList) {
$Results = (Get-SearchGitHub -Preset $Preset -Days 1)
Write-Output "$(Get-Date -Format T) Starting $Preset with $($Results.length) Results"
Expand Down Expand Up @@ -2373,6 +2373,7 @@ Function Get-SearchGitHub {
$nHW = "-label:Hardware+"
$IEDSLabel = "label:Internal-Error-Dynamic-Scan+"
$nIEDS = "-"+$IEDSLabel
$nMMC = "-label:Manifest-Metadata-Consistency+"
$IEM = "label:Internal-Error-Manifest+"
$nNSA = "-label:Internal-Error-NoSupportedArchitectures+"
$NotPass = "-label:Azure-Pipeline-Passed+" #Hasn't psased pipelines
Expand Down Expand Up @@ -2414,8 +2415,8 @@ Function Get-SearchGitHub {
$Approvable = "-label:Validation-Merge-Conflict+"
$Approvable += "-label:Manifest-Version-Error+";
$Approvable += "-label:Unexpected-File+";
$Workable += "-label:Validation-Merge-Conflict+";
$Workable += "-label:Validation-Merge-Conflict+";
$Workable = "-label:Highest-Version-Removal+";
$Workable += "-label:Validation-Certificate-Root+";
$Workable += "-label:Binary-Validation-Error+";
Expand Down Expand Up @@ -2446,6 +2447,12 @@ Function Get-SearchGitHub {
$PolicyTests += "-label:Policy-Test-2.12+";
$Automatable = "-label:WSL+";
$Automatable += "-label:URL-Validation-Error+";
$Automatable += "-label:Validation-Unapproved-URL+";
$Automatable += "-label:Validation-Open-Url-Failed+";
$Automatable += "-label:Validation-Forbidden-URL-Error+";
$Automatable += "-label:Validation-HTTP-Error+";
$Automatable += "-label:Validation-404-Error+";
$Automatable += "-label:Author-Not-Authorized+";
$Automatable += "-label:Hardware+";
$Automatable += "-label:Manifest-Validation-Error+";
Expand Down Expand Up @@ -2485,6 +2492,7 @@ Function Get-SearchGitHub {
$Url += $Cna
$Url += $Set2 #Blocking + Common + Review1 + Review2
$Url += $Approvable
$Url += $nMMC;
$Url += $Workable;
$Url += $sortAsc;
}
Expand Down Expand Up @@ -2512,7 +2520,7 @@ Function Get-SearchGitHub {
}
"ToWork3"{
$Url += $Set1 #Blocking + Common + Review1
$Url += $HaventWorked ;
#$Url += $HaventWorked ;
$Url += $Workable;
$Url += $Automatable;
$Url += $PolicyTests;
Expand Down Expand Up @@ -2810,6 +2818,13 @@ Function Get-RandomIEDS {
$ManifestType = "",
$OldManifestType = ""
)
$PRState = Get-PRStateFromComments $PR
if (($PRState | where {$_.event -eq "PreValidation"})[-1].created_at -lt (Get-Date).AddHours(-8) -AND #Last Prevalidation was 8 hours ago.
($PRState | where {$_.event -eq "Running"})[-1].created_at -lt (Get-Date).AddHours(-18)) { #Last Run was 18 hours ago.
Get-GitHubPreset Retry -PR $PR
}
While ($ManifestType -ne "version") {
$CommitFile = Get-CommitFile -PR $PR -File $File
$PackageIdentifier = ((Get-YamlValue -StringName "PackageIdentifier" $CommitFile) -replace '"',''-replace "'",'')
Expand Down

0 comments on commit 74b827f

Please sign in to comment.