@@ -21,24 +21,21 @@ const architecture = 'x64';
2121const toolDir = path . join ( __dirname , 'runner' , 'tools' ) ;
2222const tempDir = path . join ( __dirname , 'runner' , 'temp' ) ;
2323
24- /* GraalPy doesn't have a windows release yet */
25- const describeSkipOnWindows = IS_WINDOWS ? describe . skip : describe ;
26-
2724describe ( 'graalpyVersionToSemantic' , ( ) => {
2825 it . each ( [
29- [ '23.0.0a1 ' , '23.0.0a1 ' ] ,
30- [ '23.0.0' , '23.0.0' ] ,
31- [ '23.0.x' , '23.0.x' ] ,
32- [ '23.x' , '23.x' ]
26+ [ 'graalpy-24.1.0-ea.09 ' , '24.1.0-ea.9 ' ] ,
27+ [ 'graal- 23.0.0' , '23.0.0' ] ,
28+ [ 'vm- 23.0.x' , '23.0.x' ] ,
29+ [ 'graal- 23.x' , '23.x' ]
3330 ] ) ( '%s -> %s' , ( input , expected ) => {
3431 expect ( installer . graalPyTagToVersion ( input ) ) . toEqual ( expected ) ;
3532 } ) ;
3633} ) ;
3734
38- describeSkipOnWindows ( 'findRelease' , ( ) => {
35+ describe ( 'findRelease' , ( ) => {
3936 const result = JSON . stringify ( manifestData ) ;
4037 const releases = JSON . parse ( result ) as IGraalPyManifestRelease [ ] ;
41- const extension = 'tar.gz' ;
38+ const extension = IS_WINDOWS ? 'zip' : 'tar.gz' ;
4239 const arch = installer . toGraalPyArchitecture ( architecture ) ;
4340 const platform = installer . toGraalPyPlatform ( process . platform ) ;
4441 const extensionName = `${ platform } -${ arch } .${ extension } ` ;
@@ -47,8 +44,8 @@ describeSkipOnWindows('findRelease', () => {
4744 browser_download_url : `https://github.com/oracle/graalpython/releases/download/graal-23.0.0/graalpython-23.0.0-${ extensionName } `
4845 } ;
4946 const filesRC1 : IGraalPyManifestAsset = {
50- name : `graalpython-23 .1.0a1 -${ extensionName } ` ,
51- browser_download_url : `https://github.com/oracle/graalpython /releases/download/graal-23 .1.0a1/graalpython-23 .1.0a1 -${ extensionName } `
47+ name : `graalpy-24 .1.0-ea.09 -${ extensionName } ` ,
48+ browser_download_url : `https://github.com/graalvm/graal-languages-ea-builds /releases/download/graalpy-24 .1.0-ea.09/graalpy-24 .1.0-ea.09 -${ extensionName } `
5249 } ;
5350
5451 let warningSpy : jest . SpyInstance ;
@@ -84,15 +81,15 @@ describeSkipOnWindows('findRelease', () => {
8481 } ) ;
8582
8683 it ( 'Preview version of GraalPy is found' , ( ) => {
87- const graalpyVersion = installer . graalPyTagToVersion ( 'vm-23 .1.0a1 ' ) ;
84+ const graalpyVersion = installer . graalPyTagToVersion ( 'vm-24 .1.0-ea.09 ' ) ;
8885 expect (
8986 installer . findRelease ( releases , graalpyVersion , architecture , false )
9087 ) . toMatchObject ( {
9188 foundAsset : {
92- name : `graalpython-23 .1.0a1 -${ extensionName } ` ,
93- browser_download_url : `https://github.com/oracle/graalpython /releases/download/graal-23 .1.0a1/graalpython-23 .1.0a1 -${ extensionName } `
89+ name : `graalpy-24 .1.0-ea.09 -${ extensionName } ` ,
90+ browser_download_url : `https://github.com/graalvm/graal-languages-ea-builds /releases/download/graalpy-24 .1.0-ea.09/graalpy-24 .1.0-ea.09 -${ extensionName } `
9491 } ,
95- resolvedGraalPyVersion : '23 .1.0-a.1 '
92+ resolvedGraalPyVersion : '24 .1.0-ea.9 '
9693 } ) ;
9794 } ) ;
9895
@@ -107,20 +104,20 @@ describeSkipOnWindows('findRelease', () => {
107104 } ) ;
108105
109106 it ( 'GraalPy version matches semver (pre-release)' , ( ) => {
110- const graalpyVersion = '23 .1.x' ;
107+ const graalpyVersion = '24 .1.x' ;
111108 expect (
112109 installer . findRelease ( releases , graalpyVersion , architecture , false )
113110 ) . toBeNull ( ) ;
114111 expect (
115112 installer . findRelease ( releases , graalpyVersion , architecture , true )
116113 ) . toMatchObject ( {
117114 foundAsset : filesRC1 ,
118- resolvedGraalPyVersion : '23 .1.0-a.1 '
115+ resolvedGraalPyVersion : '24 .1.0-ea.9 '
119116 } ) ;
120117 } ) ;
121118} ) ;
122119
123- describeSkipOnWindows ( 'installGraalPy' , ( ) => {
120+ describe ( 'installGraalPy' , ( ) => {
124121 let tcFind : jest . SpyInstance ;
125122 let warningSpy : jest . SpyInstance ;
126123 let debugSpy : jest . SpyInstance ;
@@ -232,20 +229,20 @@ describeSkipOnWindows('installGraalPy', () => {
232229 it ( 'found and install GraalPy, pre-release fallback' , async ( ) => {
233230 spyCacheDir = jest . spyOn ( tc , 'cacheDir' ) ;
234231 spyCacheDir . mockImplementation ( ( ) =>
235- path . join ( toolDir , 'GraalPy' , '23 .1.0' , architecture )
232+ path . join ( toolDir , 'GraalPy' , '24 .1.0' , architecture )
236233 ) ;
237234
238235 spyChmodSync = jest . spyOn ( fs , 'chmodSync' ) ;
239236 spyChmodSync . mockImplementation ( ( ) => undefined ) ;
240237
241238 await expect (
242- installer . installGraalPy ( '23 .1.x' , architecture , false , undefined )
239+ installer . installGraalPy ( '24 .1.x' , architecture , false , undefined )
243240 ) . rejects . toThrow ( ) ;
244241 await expect (
245- installer . installGraalPy ( '23 .1.x' , architecture , true , undefined )
242+ installer . installGraalPy ( '24 .1.x' , architecture , true , undefined )
246243 ) . resolves . toEqual ( {
247- installDir : path . join ( toolDir , 'GraalPy' , '23 .1.0' , architecture ) ,
248- resolvedGraalPyVersion : '23 .1.0-a.1 '
244+ installDir : path . join ( toolDir , 'GraalPy' , '24 .1.0' , architecture ) ,
245+ resolvedGraalPyVersion : '24 .1.0-ea.9 '
249246 } ) ;
250247
251248 expect ( spyHttpClient ) . toHaveBeenCalled ( ) ;
0 commit comments