Skip to content

Commit b45ffad

Browse files
committed
core: drop "test" Distribution
Northwestern builds have been updated to match Utah builds, so this distribution is no longer supported.
1 parent 2c52f9b commit b45ffad

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919
- uses: Bogdanp/[email protected]
2020
with:
2121
architecture: 'x64' # or: 'x64', 'x86', 'arm32', 'arm64' (or 'aarch64')
22-
distribution: 'full' # or: 'minimal' (but you probably don't want 'minimal', see note at the bottom of this doc), or 'test' (only on 'current' Northwestern snapshot)
22+
distribution: 'full' # or: 'minimal' (but you probably don't want 'minimal', see note at the bottom of this doc)
2323
variant: 'CS' # or: 'BC' for Racket Before Chez
2424
version: '8.17' # or: 'stable' for the latest version, 'current' for the latest snapshot, 'pre-release' for the latest pre-release build (defaults to 'stable')
2525
- run: racket hello.rkt

__tests__/common.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@ describe('makeInstallerURL', () => {
249249
['current', 'x64', 'full', 'CS', 'linux', 'northwestern'],
250250
'https://plt.cs.northwestern.edu/snapshots/current/installers/racket-current-x86_64-linux-cs.sh'
251251
],
252-
[
253-
['current', 'x64', 'test', 'CS', 'linux', 'northwestern'],
254-
'https://plt.cs.northwestern.edu/snapshots/current/installers/racket-test-current-x86_64-linux-cs.sh'
255-
],
256252
[
257253
['current', 'x64', 'minimal', 'BC', 'linux', 'northwestern'],
258254
'https://plt.cs.northwestern.edu/snapshots/current/installers/racket-minimal-current-x86_64-linux-bc.sh'

lib/setup-racket.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5314,7 +5314,6 @@ const RACKET_ARCHS = {
53145314
};
53155315
const RACKET_DISTROS = {
53165316
full: 'racket',
5317-
test: 'racket-test',
53185317
minimal: 'racket-minimal'
53195318
};
53205319
const RACKET_PLATFORMS = {
@@ -5551,7 +5550,7 @@ function parseVariant(s) {
55515550
return s;
55525551
}
55535552
function parseDistribution(s) {
5554-
if (s !== 'minimal' && s !== 'test' && s !== 'full') {
5553+
if (s !== 'minimal' && s !== 'full') {
55555554
throw new Error(`invalid distribution '${s}'`);
55565555
}
55575556
return s;
@@ -5647,7 +5646,7 @@ function selectSnapshotSite(version, arch, distribution, variant) {
56475646
const promises = sites.map((pair) => __awaiter(this, void 0, void 0, function* () {
56485647
const [root, site] = pair;
56495648
const installerURL = makeInstallerURL(version, arch, distribution, variant, process.platform, site);
5650-
core.debug(`checking '${installerURL}'`);
5649+
core.info(`checking '${installerURL}'`);
56515650
try {
56525651
const stamp = yield getSnapshotSiteStamp(root);
56535652
const ok = yield headSnapshotSiteInstaller(installerURL);

src/common.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as path from 'path';
88

99
export type Arch = 'aarch64' | 'arm32' | 'arm64' | 'x86' | 'x64';
1010
export type Variant = 'BC' | 'CS';
11-
export type Distribution = 'full' | 'minimal' | 'test';
11+
export type Distribution = 'full' | 'minimal';
1212
export type Platform = 'darwin' | 'linux' | 'win32';
1313
export type UseSudo = 'always' | 'never' | '';
1414
export type SnapshotSite = 'none' | 'utah' | 'northwestern';
@@ -32,7 +32,6 @@ const RACKET_ARCHS: {[key: string]: string} = {
3232

3333
const RACKET_DISTROS: {[key: string]: string} = {
3434
full: 'racket',
35-
test: 'racket-test',
3635
minimal: 'racket-minimal'
3736
};
3837

@@ -314,7 +313,7 @@ export function parseVariant(s: string): Variant {
314313
}
315314

316315
export function parseDistribution(s: string): Distribution {
317-
if (s !== 'minimal' && s !== 'test' && s !== 'full') {
316+
if (s !== 'minimal' && s !== 'full') {
318317
throw new Error(`invalid distribution '${s}'`);
319318
}
320319

0 commit comments

Comments
 (0)