Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: validate barcalendar project versions dates from eol #453

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

UsamaSadiq
Copy link
Member

@UsamaSadiq UsamaSadiq commented Nov 6, 2023

Description

Changes

  • Added new validation function validate_version_date for validating a project/version's EOL or release Date from https://endoflife.date/docs/api
  • Some Projects like Django & Ubuntu don't have any EOL in our script and we only validate their release dates so added the option to validate either release date or EOL based on a boolean flag input.
  • Added custom logger to handle all console logs separately from the console script being generated.

Current log Output

  • Currently following issues are being reported when running the script.
<LogRecord: eol_logger, 30, barcalendar.py, 100, "Invalid EOL: Update Django 3.0 releaseDate to 2019/12 instead">
<LogRecord: eol_logger, 30, barcalendar.py, 100, "Invalid EOL: Update Django 4.0 releaseDate to 2021/12 instead">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: Ubuntu/24.04 not found on endoflife.date">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: Ubuntu/26.04 not found on endoflife.date">
<LogRecord: eol_logger, 30, barcalendar.py, 100, "Invalid EOL: Update MySQL 8.1 eol to 2023/10 instead">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: ElasticSearch/7.10 not found on endoflife.date">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: ElasticSearch/7.11 not found on endoflife.date">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: ElasticSearch/7.12 not found on endoflife.date">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: ElasticSearch/7.13 not found on endoflife.date">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: ElasticSearch/7.17 not found on endoflife.date">
<LogRecord: eol_logger, 40, barcalendar.py, 83, "Project not Found: Redis/5.6 not found on endoflife.date">
<LogRecord: eol_logger, 30, barcalendar.py, 100, "Invalid EOL: Update Redis 6.0 eol to 2023/08 instead">
<LogRecord: eol_logger, 30, barcalendar.py, 92, "No EOL found for Redis 6.2">
<LogRecord: eol_logger, 30, barcalendar.py, 92, "No EOL found for Redis 7.0">

Automation of the Warning Resolver Script

  • There is an automated workflow already working which executes on quarterly basis and creates an issue for the arbi-bom team to update support window sheet. (Most recent issue created on Oct 1st for current quarter). Above warnings will be fixed in resolving this issue.

barcalendar.py Show resolved Hide resolved
barcalendar.py Show resolved Hide resolved
barcalendar.py Show resolved Hide resolved
barcalendar.py Show resolved Hide resolved
@nedbat
Copy link
Contributor

nedbat commented Nov 9, 2023

Go ahead and merge after small tweaks.

@UsamaSadiq UsamaSadiq merged commit ab87d6b into master Nov 15, 2023
3 checks passed
@UsamaSadiq UsamaSadiq deleted the validate-barcalendar-dates branch November 15, 2023 12:51
@UsamaSadiq UsamaSadiq restored the validate-barcalendar-dates branch November 15, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants