Skip to content

Commit

Permalink
Remove all vestiges of the old CDPx pipeline and old loc data (#15242)
Browse files Browse the repository at this point in the history
This pull request removes build steps and localization files that we no longer need.

Related: #15243
  • Loading branch information
DHowett authored Jan 3, 2022
1 parent 5ddfbc1 commit 4484727
Show file tree
Hide file tree
Showing 721 changed files with 3 additions and 264,640 deletions.
10 changes: 0 additions & 10 deletions .pipelines/build-bootstrapper.cmd

This file was deleted.

5 changes: 0 additions & 5 deletions .pipelines/build-installer-PTCustomActions.cmd

This file was deleted.

5 changes: 0 additions & 5 deletions .pipelines/build-installer.cmd

This file was deleted.

33 changes: 0 additions & 33 deletions .pipelines/build-localization.cmd

This file was deleted.

11 changes: 0 additions & 11 deletions .pipelines/build-tools.cmd

This file was deleted.

6 changes: 0 additions & 6 deletions .pipelines/build.cmd

This file was deleted.

21 changes: 0 additions & 21 deletions .pipelines/pipeline.user.windows.buddy.yml

This file was deleted.

276 changes: 0 additions & 276 deletions .pipelines/pipeline.user.windows.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .pipelines/restore-bootstrapper.cmd

This file was deleted.

Loading

1 comment on commit 4484727

@github-actions
Copy link

@github-actions github-actions bot commented on 4484727 Jan 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@check-spelling-bot Report

🔴 Please review

See the action log for details.

Unrecognized words (2)

Pdb
Toolset

Previously acknowledged words that are now absent appcontainer azurecr binskim buildcommand buildtools cdpxwin CPPARM CPPx defaultcommand dupenv DUSTIN errorlevel estdir etcore Firefox Gamebar Grayscale LASTEXITCODE LEQ linkid Minimizeallwindows mkdir moderncop namings neq nocache npm pdb policheck popd pushd robocopy SHAREIMAGELISTS spamming spdth Switchbetweenvirtualdesktops SYSTEMASTERISK toolset umd vse vsix WDK wdksetup wdkvsix We'd webclient webpack WINMSAPP
To accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands

... in a clone of the [email protected]:microsoft/PowerToys.git repository
on the main branch:

update_files() {
perl -e '
my @expect_files=qw('".github/actions/spelling/whitelist.txt"');
@ARGV=@expect_files;
my @stale=qw('"$patch_remove"');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
use File::Basename qw(dirname);
make_path (dirname($new_expect_file));
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"$patch_add"');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a)."-".$a cmp lc($b)."-".$b} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;
system("git", "add", $new_expect_file);
'
}

comment_json=$(mktemp)
curl -L -s -S \
-H "Content-Type: application/json" \
"https://api.github.com/repos/microsoft/PowerToys/comments/62861184" > "$comment_json"
comment_body=$(mktemp)
jq -r ".body // empty" "$comment_json" > $comment_body
rm $comment_json

patch_remove=$(perl -ne 'next unless s{^</summary>(.*)</details>$}{$1}; print' < "$comment_body")

patch_add=$(perl -e '$/=undef; $_=<>; if (m{Unrecognized words[^<]*</summary>\n*```\n*([^<]*)```\n*</details>$}m) { print "$1" } elsif (m{Unrecognized words[^<]*\n\n((?:\w.*\n)+)\n}m) { print "$1" };' < "$comment_body")

update_files
rm $comment_body
git add -u

Please sign in to comment.