Skip to content

Commit

Permalink
Add NodeJS 23.3.0 supporting ICU76 (unicode-org#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-oly authored Nov 27, 2024
1 parent 2300fe3 commit 1aacaf1
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
22 changes: 22 additions & 0 deletions run_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,28 @@
"per_execution": 10000
}
},
{
"prereq": {
"name": "nvm 23.3.0, icu76.1",
"version": "23.3.0",
"command": "nvm install 23.3.0;nvm use 23.3.0 --silent"
},
"run": {
"icu_version": "icu76",
"exec": "node",
"test_type": [
"collation_short",
"datetime_fmt",
"list_fmt",
"number_fmt",
"lang_names",
"likely_subtags",
"rdt_fmt",
"plural_rules"
],
"per_execution": 10000
}
},
{
"prereq": {
"name": "nvm 22.9.0, icu75.1",
Expand Down
9 changes: 6 additions & 3 deletions testdriver/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ class ParallelMode(Enum):
ParallelByLang = 2

class NodeVersion(Enum):
Node22 = "22.1.0"
Node23 = "23.3.0"
Node22 = "22.9.0"
Node21 = "21.6.0"
Node19 = "19.7.0"
Node18_7 = "18.7.0"
Expand Down Expand Up @@ -248,7 +249,8 @@ class ICU4XVersion(Enum):
# TODO: combine the version info
IcuVersionToExecutorMap = {
'node': {
'75': ["22.1.0"],
'76': ["23.3.0"],
'75': ["22.9.0"],
'74': ["21.6.0"],
'73': ["20.1.0"],
'72': ['18.14.2'],
Expand All @@ -272,7 +274,8 @@ class ICU4XVersion(Enum):
# What versions of NodeJS use specific ICU versions
# https://nodejs.org/en/download/releases/
NodeICUVersionMap = {
'22.1.0': '75.1',
'23.3.0': '76.1',
'22.9.0': '75.1',
'21.6.0': '74.1',
'20.1.0': '73.1',
'18.14.2': '72.1',
Expand Down
3 changes: 2 additions & 1 deletion testgen/generators/datetime_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def generate_datetime_data_from_cldr(self, dt_json_path, run_limit=-1):
def process_test_data(self):
# Use NOde JS to create the .json files
icu_nvm_versions = {
'icu75': '22.1.0',
'icu76': '23.3.0',
'icu75': '22.9.0',
'icu74': '21.6.0',
'icu73': '20.1.0',
'icu72': '18.14.2',
Expand Down
3 changes: 2 additions & 1 deletion testgen/generators/list_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class ListFmtGenerator(DataGenerator):
def process_test_data(self):
# Use Node JS to create the .json files
icu_nvm_versions = {
'icu75': '22.1.0',
'icu76': '23.3.0',
'icu75': '22.9.0',
'icu74': '21.6.0',
'icu73': '20.1.0',
'icu72': '18.14.2',
Expand Down
3 changes: 2 additions & 1 deletion testgen/generators/relativedatetime_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class RelativeDateTimeFmtGenerator(DataGenerator):
def process_test_data(self):
# Use NOde JS to create the .json files
icu_nvm_versions = {
'icu75': '22.1.0',
'icu76': '23.3.0',
'icu75': '22.9.0',
'icu74': '21.6.0',
'icu73': '20.1.0',
'icu72': '18.14.2',
Expand Down

0 comments on commit 1aacaf1

Please sign in to comment.