Closed Bug 1117866 Opened 11 years ago Closed 10 years ago

Add a script to validate the iCal files for holidays

Categories

(www.mozilla.org :: Bedrock, defect)

Production
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pmac, Assigned: nastavs, Mentored)

Details

(Whiteboard: [kb=1623656] [good first bug])

We get pull-requests to update these files and have to manually validate them, so we should automate it and have it run in CI.
Whiteboard: [kb=1623656]
Pmac: Is this a roadmap candidate? What is the level of priority?
Flags: needinfo?(pmac)
I feel like it's more of a "nice to have" than a priority. Maybe it's a good mentored bug even.
Flags: needinfo?(pmac)
Mentor: pmac
Whiteboard: [kb=1623656] → [kb=1623656] [good first bug]
Hi, I'm willing to take this up - I don't see any iCal files on repo (except tests). Let me know what needs to be done to tackle this.
Flags: needinfo?(pmac)
Hi again, I just noticed that it's in `media/caldata/*.ics` -- so what _exactly_ needs to be validated? format, specification, dates and the like?
Hi Srivats, Basically we'd like to have an automated way to say "these files validate and won't break things". We don't process them on the site, but we do get pull-requests to update them from time to time and it's difficult to verify their correctness looking at a diff. So we'd at least like CI (like Travis or Jenkins) to tell us whether or not the formatting is right. Thanks for taking this, and let me know how I can help.
Assignee: nobody → nastavs
Flags: needinfo?(pmac)
Created PR here: https://github.com/mozilla/bedrock/pull/2890 Please review
Commit pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/7d13ad85ed18bb6204f0218bfa36037dbcf3423e Add a script to fix bug 1117866 This script checks every icalendar file present in <bedrock>/media/caldata and validates it. Currently, it would run every time a commit is done on master, but that can be changed to just run on commits to .ics files. There's also a failure in MexicanHolidays.ics, that I have left as-is for the author to fix - this would be a good test to check/verify that all folks use the same file encoding. Moved back check_calendars.py to scripts dir Fix Mexican calendar Ideally, this should be done by caldata maintainers. We are fixing this now that we go live and avoid build failures preventing merge into master.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.