From 59fe7be3113d7b28d51a2ffbeaf28d957ef923f2 Mon Sep 17 00:00:00 2001 From: cubercsl <2014cais01@gmail.com> Date: Mon, 14 Mar 2022 19:23:04 +0800 Subject: [PATCH] ci: enhance detection of file names and dates --- conference-yaml-schema.yml | 1 + conference/AI/ijcai.yml | 4 ++-- conference/DS/asplos.yml | 4 ++-- conference/DS/atc.yml | 4 ++-- conference/DS/eurosys.yml | 6 +++--- conference/DS/fast.yml | 6 +++--- conference/DS/fccm.yml | 2 +- conference/DS/isca.yml | 2 +- conference/DS/sc.yml | 2 +- conference/NW/nsdi.yml | 2 +- conference/SC/esorics.yml | 4 ++-- conference/SC/fc.yml | 4 ++-- conference/SC/ndss.yml | 4 ++-- conference/SC/pets.yml | 4 ++-- conference/SC/soups.yml | 4 ++-- conference/SC/uss.yml | 4 ++-- conference/SE/cp.yml | 2 +- conference/SE/esem.yml | 2 +- conference/SE/middleware.yml | 2 +- conference/SE/osdi.yml | 2 +- conference/SE/sas.yml | 2 +- scripts/validate | 7 +++++-- 22 files changed, 39 insertions(+), 35 deletions(-) diff --git a/conference-yaml-schema.yml b/conference-yaml-schema.yml index db2b227d..96dce8b6 100644 --- a/conference-yaml-schema.yml +++ b/conference-yaml-schema.yml @@ -118,6 +118,7 @@ items: date: description: When the main conference is happening, e.g., Mar 12-16, 2021 type: string + pattern: ^[ -~]+$ place: description: Where the main conference is happening, e.g., city, country type: string diff --git a/conference/AI/ijcai.yml b/conference/AI/ijcai.yml index 8a934649..53740afc 100644 --- a/conference/AI/ijcai.yml +++ b/conference/AI/ijcai.yml @@ -10,5 +10,5 @@ timeline: - deadline: '2022-01-14 23:59:59' timezone: UTC+1 - date: July 23-29, 2022. - place: Vienna, Austria. \ No newline at end of file + date: July 23-29, 2022 + place: Vienna, Austria. diff --git a/conference/DS/asplos.yml b/conference/DS/asplos.yml index 7a9b6a41..16cc003e 100644 --- a/conference/DS/asplos.yml +++ b/conference/DS/asplos.yml @@ -10,7 +10,7 @@ timeline: - deadline: '2020-08-21 23:59:59' timezone: AoE - date: April 19–23, 2021 + date: April 19-23, 2021 place: Virtual - year: 2022 id: asplos22 @@ -19,4 +19,4 @@ - deadline: '2021-08-06 23:59:59' timezone: AoE date: Feb 28-March 4, 2022 - place: Virtual \ No newline at end of file + place: Virtual diff --git a/conference/DS/atc.yml b/conference/DS/atc.yml index 050c34e0..b092d8ef 100644 --- a/conference/DS/atc.yml +++ b/conference/DS/atc.yml @@ -10,7 +10,7 @@ timeline: - deadline: '2021-01-12 23:59:59' timezone: AoE - date: July 14–16, 2021 + date: July 14-16, 2021 place: SANTA CLARA, USA - year: 2022 id: atc2022 @@ -18,5 +18,5 @@ timeline: - deadline: '2022-01-13 23:59:59' timezone: UTC+0 - date: July 11–13, 2022 + date: July 11-13, 2022 place: Omni La Costa Resort & Spa in Carlsbad, CA, USA diff --git a/conference/DS/eurosys.yml b/conference/DS/eurosys.yml index 4715e9b4..542789c4 100644 --- a/conference/DS/eurosys.yml +++ b/conference/DS/eurosys.yml @@ -11,7 +11,7 @@ - abstract_deadline: '2020-10-01 23:59:59' deadline: '2020-10-09 23:59:59' timezone: AoE - date: April 26–29, 2021 + date: April 26-29, 2021 place: Edinburgh, UK - year: 2022 id: eurosys2022 @@ -20,7 +20,7 @@ - abstract_deadline: '2021-10-01 23:59:59' deadline: '2021-10-09 23:59:59' timezone: AoE - date: April 5–8, 2022 + date: April 5-8, 2022 place: Rennes, France - year: 2023 id: eurosys2023 @@ -29,5 +29,5 @@ - abstract_deadline: '2022-05-10 23:59:59' deadline: '2022-05-17 23:59:59' timezone: AoE - date: May 9–12, 2023 + date: May 9-12, 2023 place: Rome, Italy diff --git a/conference/DS/fast.yml b/conference/DS/fast.yml index 8a8a24ca..7b6959c2 100644 --- a/conference/DS/fast.yml +++ b/conference/DS/fast.yml @@ -10,7 +10,7 @@ timeline: - deadline: '2020-09-24 23:59:59' timezone: UTC-7 - date: Feburary 23–25, 2021 + date: Feburary 23-25, 2021 place: Virtual - year: 2022 id: fast22 @@ -18,5 +18,5 @@ timeline: - deadline: '2021-09-23 23:59:59' timezone: UTC-7 - date: Feburary 21–24, 2022 - place: SANTA CLARA, CA, USA \ No newline at end of file + date: Feburary 21-24, 2022 + place: SANTA CLARA, CA, USA diff --git a/conference/DS/fccm.yml b/conference/DS/fccm.yml index c1e26d5b..d4863938 100644 --- a/conference/DS/fccm.yml +++ b/conference/DS/fccm.yml @@ -13,5 +13,5 @@ - deadline: '2022-01-10 23:59:59' comment: 'full paper deadline' timezone: AoE - date: May 15–18, 2022 + date: May 15-18, 2022 place: New York City, USA diff --git a/conference/DS/isca.yml b/conference/DS/isca.yml index fc0b8c9f..5a183e41 100644 --- a/conference/DS/isca.yml +++ b/conference/DS/isca.yml @@ -13,5 +13,5 @@ - deadline: '2021-11-23 23:59:59' comment: 'full paper deadline' timezone: AoE - date: June 11–15, 2022 + date: June 11-15, 2022 place: New York City, USA diff --git a/conference/DS/sc.yml b/conference/DS/sc.yml index 7547e7cd..f80bd40c 100644 --- a/conference/DS/sc.yml +++ b/conference/DS/sc.yml @@ -10,5 +10,5 @@ timeline: - deadline: '2022-04-01 23:59:00' timezone: AoE - date: November 13–18, 2022 + date: November 13-18, 2022 place: Dallas, Texas, USA diff --git a/conference/NW/nsdi.yml b/conference/NW/nsdi.yml index 20ed6b5a..50a88df7 100644 --- a/conference/NW/nsdi.yml +++ b/conference/NW/nsdi.yml @@ -24,5 +24,5 @@ - abstract_deadline: '2022-09-13 23:59:59' deadline: '2022-09-20 23:59:59' timezone: UTC-5 - date: April 17–19, 2023 + date: April 17-19, 2023 place: BOSTON, USA diff --git a/conference/SC/esorics.yml b/conference/SC/esorics.yml index 669d0d0f..803b015f 100644 --- a/conference/SC/esorics.yml +++ b/conference/SC/esorics.yml @@ -17,5 +17,5 @@ - deadline: '2022-05-22 23:59:59' comment: 'Spring Cycle Full Paper Submission' timezone: UTC+1 - date: September 26–30, 2022 - place: Copenhagen, Denmark \ No newline at end of file + date: September 26-30, 2022 + place: Copenhagen, Denmark diff --git a/conference/SC/fc.yml b/conference/SC/fc.yml index 802f6421..e8e37e22 100644 --- a/conference/SC/fc.yml +++ b/conference/SC/fc.yml @@ -13,5 +13,5 @@ - deadline: '2021-09-09 23:59:59' comment: 'Paper submission' timezone: UTC-12 - date: February 14–18, 2022 - place: Radisson Grenada Beach Resort Grenada \ No newline at end of file + date: February 14-18, 2022 + place: Radisson Grenada Beach Resort Grenada diff --git a/conference/SC/ndss.yml b/conference/SC/ndss.yml index 67e9ccb6..fddd6dbf 100644 --- a/conference/SC/ndss.yml +++ b/conference/SC/ndss.yml @@ -13,5 +13,5 @@ - deadline: '2021-07-23 23:59:59' comment: 'fall' timezone: UTC-12 - date: February 27 – March 3, 2022 - place: San Diego, California \ No newline at end of file + date: February 27 - March 3, 2022 + place: San Diego, California diff --git a/conference/SC/pets.yml b/conference/SC/pets.yml index 093ebd58..a5661694 100644 --- a/conference/SC/pets.yml +++ b/conference/SC/pets.yml @@ -17,5 +17,5 @@ - deadline: '2022-02-28 23:59:59' comment: 'Issue 4 Paper Submission Deadline' timezone: AoE - date: July 18–23, 2022 - place: Sydney, Australia \ No newline at end of file + date: July 18-23, 2022 + place: Sydney, Australia diff --git a/conference/SC/soups.yml b/conference/SC/soups.yml index 8ae9102a..271a479f 100644 --- a/conference/SC/soups.yml +++ b/conference/SC/soups.yml @@ -13,5 +13,5 @@ - deadline: '2021-02-25 23:59:59' comment: 'Paper Submission Deadline' timezone: AoE - date: AUGUST 8–10, 2021 - place: Co-located withUSENIX Security '21 \ No newline at end of file + date: AUGUST 8-10, 2021 + place: Co-located withUSENIX Security '21 diff --git a/conference/SC/uss.yml b/conference/SC/uss.yml index f8cad8ea..be94bfbb 100644 --- a/conference/SC/uss.yml +++ b/conference/SC/uss.yml @@ -15,5 +15,5 @@ - deadline: '2022-02-01 23:59:59' comment: '3 review cycles' timezone: UTC-12 - date: August 10–12, 2022 - place: BOSTON, MA, USA \ No newline at end of file + date: August 10-12, 2022 + place: BOSTON, MA, USA diff --git a/conference/SE/cp.yml b/conference/SE/cp.yml index b03a306f..3a1b3e49 100644 --- a/conference/SE/cp.yml +++ b/conference/SE/cp.yml @@ -11,5 +11,5 @@ - deadline: '2022-02-25 23:59:59' comment: 'Full Paper Submission' timezone: AoE - date: July 31–August 8, 2022 + date: July 31-August 8, 2022 place: HAIFA, ISRAEL diff --git a/conference/SE/esem.yml b/conference/SE/esem.yml index 03d13289..8373a073 100644 --- a/conference/SE/esem.yml +++ b/conference/SE/esem.yml @@ -13,5 +13,5 @@ - deadline: '2022-05-02 23:59:59' comment: 'Submission' timezone: AoE - date: September 19–23, 2022 + date: September 19-23, 2022 place: Helsinki, Finland diff --git a/conference/SE/middleware.yml b/conference/SE/middleware.yml index 4babd268..91003ea3 100644 --- a/conference/SE/middleware.yml +++ b/conference/SE/middleware.yml @@ -13,5 +13,5 @@ - deadline: '2022-03-15 23:59:59' comment: 'Submission R2' timezone: AoE - date: November 7–11, 2022 + date: November 7-11, 2022 place: Fairmont Le Château Frontenac, Québec City, Québec, Canada diff --git a/conference/SE/osdi.yml b/conference/SE/osdi.yml index cbd891ff..6ce9563e 100644 --- a/conference/SE/osdi.yml +++ b/conference/SE/osdi.yml @@ -10,5 +10,5 @@ timeline: - deadline: '2021-12-14 23:59:59' timezone: AoE - date: July 11–13, 2022 + date: July 11-13, 2022 place: Omni La Costa Resort & Spa in Carlsbad, CA, USA diff --git a/conference/SE/sas.yml b/conference/SE/sas.yml index c511b534..c8d6cba6 100644 --- a/conference/SE/sas.yml +++ b/conference/SE/sas.yml @@ -11,5 +11,5 @@ - deadline: 'TBD' comment: 'Submission deadline' timezone: AoE - date: November 14–19, 2022 + date: November 14-19, 2022 place: Auckland, New Zealand diff --git a/scripts/validate b/scripts/validate index 1428dc4b..424f8a2c 100755 --- a/scripts/validate +++ b/scripts/validate @@ -13,6 +13,7 @@ import os import sys from io import StringIO +from pprint import pprint from unittest import TestCase, TestLoader, TextTestRunner import jsonschema @@ -37,9 +38,11 @@ class ConferenceTest(TestCase): subdir = os.path.join(DATA_ROOT, sub) if os.path.isdir(subdir): for conf in os.listdir(subdir): - if not conf.endswith('.yml'): - continue with self.subTest(conf=conf): + if conf.endswith('.yaml'): # Some new contributors will commit a wrong the file extension. + self.fail(msg=f'\033[1;31m{conf}\033[m should be renamed as \033[1;31m{conf[:-4]}yml\033[m') + if not conf.endswith('.yml'): + continue conference_yml_path = os.path.join(DATA_ROOT, sub, conf) with open(conference_yml_path, 'r') as conference_yml_file: try: