Commit Graph

114 Commits

Author SHA1 Message Date
Marc Wrobel
c7faf9545f [release_table] Add remove_if_undefined parameter (#494)
remove_if_undefined allows to exclude unreleased release more easily.
2025-08-12 22:39:39 +02:00
Nemo
44bee91053 [git] Add a user-agent to git clone (#487)
Following #474, also use the endoflife.date user agent when cloning git repositories.
2025-08-06 23:42:13 +02:00
Marc Wrobel
1735954764 [release-table] Implement render_js_click_selector parameter (#485)
This parameter allows clicking on an element of the page after it was loaded when using `render_javascript`.
2025-08-03 21:43:16 +02:00
Marc Wrobel
72b9be8955 Normalize release names (#483)
Automatically normalize release names. This may be useful in a few situations to avoid having to write a custom script.
2025-08-02 15:52:03 +02:00
Marc Wrobel
3f65ff9d9e [update-product-data] Allow disabling auto configuration (#482) 2025-08-02 15:01:47 +02:00
Marc Wrobel
7368e073dc [amazon-neptune] Fix date parsing 2025-07-27 23:34:49 +02:00
Marc Wrobel
7dfcfb2903 [citrix-vad-rss] Add auto method 2025-07-27 19:25:09 +02:00
Marc Wrobel
3b8adee264 [nvidia-driver] Add automation script (#476)
Closes #368.
2025-07-27 18:29:58 +02:00
Marc Wrobel
e1e93dc841 [motorola-security] Add auto method (#475)
Based on https://gist.github.com/ab/67c6343530c6b8e599f07cedccbcba3d.

Closes #277.
2025-07-27 12:23:20 +02:00
Marc Wrobel
c4fa5b187c [http] Improve User-Agent handling (#474)
- Simplify overriding the User-Agent by replacing the generic (unused) `headers` parameter by a new `user_agent` parameters.
- Take into account the User-Agent even in `fetch_javascript_url` : Playwright user agent is `Playwright/1.12.0` by default anyway.
- Make it possible to override the User-Agent with the `release_table` method.
- Update splunk to use Firefox's User-Agent.

This follows #470.
2025-07-26 10:24:54 +02:00
Maxim Ivanov
68c69aa3d1 [common http] improve the User-Agent identification (#470)
Properly identifying endoflife.date bot is more fair for website administrators, and give them the ability to more easily authorize the bot if they want to.

---------

Co-authored-by: Marc Wrobel <marc.wrobel@gmail.com>
2025-07-26 09:45:54 +02:00
Marc Wrobel
a985e6218f [chrome-releases] Add auto method (#469)
Based on https://chromiumdash.appspot.com API.
2025-07-15 23:37:16 +02:00
Marc Wrobel
54ff914f34 [http] Improve fetch_javascript_url error handling (#468) 2025-07-13 13:30:52 +02:00
Marc Wrobel
081d884abe Remove invalid releases automatically (#466)
Automatically remove empty releases or releases which are released in the future, regardless of the product.

Also refactored a bit releasedata.py to use better names and clarify types.
2025-07-13 11:36:13 +02:00
Marc Wrobel
ec6217b3cf [http] Improve caching management 2025-07-13 10:59:35 +02:00
Marc Wrobel
42c1189781 Copy releases from products frontmatter (#465)
Copy releases, without their properties, from product data (frontmatter) to release data.

This script is not intended to be declared in the frontmatter: it is for internal use only.
It executes before all other scripts, and helps the following scripts to work with releases.
2025-07-12 16:47:36 +02:00
Marc Wrobel
bccac7033d Fix github groups
github groups were written using logging, which was added the date as a prefix.
This were breaking the grouping of logs on GHA.
2025-07-12 11:44:08 +02:00
Marc Wrobel
e62676b5c4 [google-kubernetes-engine] Normalize script (#464)
The script used to parse different channel for historical (forgotten) reasons. This is the only script that works that way, and release data is not supposed to be consumed by other clients than endoflife.date. So aligning this script for all the other scripts.

In case other channel data is useful for someone, it would be preferable to create multiple products so that the data is available through our official API.
2025-07-12 10:29:33 +02:00
Marc Wrobel
1f7a3772d6 [http] Improve fetch_javascript_url (#462)
Replace `click_selector` by `wait_for,` which is a selector that we must wait for before considering the page loaded.

Also added `select_wait_for`, which returns the waited for element. Oddly this may be needed in some case (such as `artifactory.py`) where the `page.content()` does not contain the waited for element.
2025-07-09 23:20:39 +02:00
Marc Wrobel
08808282dd Add new declare method (#461)
For manually declare (or overwrite) missing or erroneous versions.
2025-07-08 00:16:08 +02:00
Marc Wrobel
391d65ad8a Simplify argument parsing (#459)
With the current state of automation scripts, this is not possible anymore to launch script with multiple auto configs.
2025-07-06 22:42:01 +02:00
Marc Wrobel
c78d1fe2b5 Refactor scripts arguments handling (#456)
- remove the use of environment variables to get directory paths,
- make use of arguments / argparse instead of environment variables in `update.py` and `report.py`,
- automatically guess the data directory in `latest.py` based on the script's location,
- propagate log level to auto scripts,
- move `list_configs_from_argv` from `endoflife` module to `releasedata` module,
- use `list_products` in `latest.py` to load the product's frontmatters.
2025-06-28 19:05:07 +02:00
Marc Wrobel
3beb0f6e34 Respect HTTP Cache-Control header if available (#450)
Allow stale responses in case of error in order to reduce the number of temporary errors.

Note that the cache will be reset on the first build of every week in any cases, see .github/workflows/update.yml.
2025-06-28 12:57:41 +02:00
Marc Wrobel
312ce078bb Improve HTTP handling in scripts (#449)
Provide some helper methods to hide the complexity of parsing HTML, JSON, YAML, XML or Markdown.
2025-06-28 12:26:10 +02:00
Marc Wrobel
f404274310 Align custom scripts with generic scripts (#445)
Align custom scripts with generic scripts, making them configurable. This has a few advantages:

- script code is more unified,
- no more hard-coded method names in scripts, which is less error prone and make it easier to rename scripts,
- no more hard coded product names in scripts, which is less error prone and make it easier to rename products,
- less hard-coded URLs and regexes in scripts, which makes auto-configuration more expressive / updatable,

Also added method `endoflife.list_configs_from_argv()` so that it is easier to manipulate scripts arguments.
2025-06-07 17:25:05 +02:00
Marc Wrobel
c2a22dd150 [samsung-security] Generify samsung-mobile method (#439)
- Make section and inclusions/exclusions configurable,
- Remove Galaxy Tabs from samsung-mobile data (following https://github.com/endoflife-date/endoflife.date/pull/7513),
- Initialize Galaxy Tabs dataset (following https://github.com/endoflife-date/endoflife.date/pull/7513).
2025-05-19 19:06:45 +02:00
Marc Wrobel
aa43bf6602 [virtualbox] Add automation (#438)
Using https://www.virtualbox.org/wiki/Download_Old_Builds.
2025-05-17 11:55:38 +02:00
Marc Wrobel
6091ef55fe [samsung-mobile] Add automation (#437)
Detect new models and aggregate EOL data for Samsung Mobile devices.

This script works cumulatively: when a model is not listed anymore on https://security.samsungmobile.com/workScope.smsb
it retains the date and use it as the model's EOL date.
2025-05-07 23:29:33 +02:00
Denis Fuenzalida
54ef082add [red-hat-jboss-eap] Automation version retrieval (#414)
red-hat-jboss-eap-7.py retrieves all the 7.x versions based on https://access.redhat.com/articles/2332721.

red-hat-jboss-eap-8.py retrieves only the last 8.x version based on https://maven.repository.redhat.com/ga/org/jboss/eap/channels/eap-8.0/maven-metadata.xml (the version date is approximated using the lastUpdated tag).

---------

Co-authored-by: Denis Fuenzalida 🐙 <defuenza@microsoft.com>
Co-authored-by: Marc Wrobel <marc.wrobel@gmail.com>
2025-05-02 17:31:12 +02:00
Marc Wrobel
e56b642326 Add github_tags auto method (#427)
Add a new method to fetch tags with their related commit date using GitHub GraphQL API.

For large repositories, such as https://github.com/gregkh/linux, it may be more performant than the git auto method.
2025-04-05 16:40:29 +02:00
Marc Wrobel
c79f871bc4 [eks] Update script to accept month-year dates (#408)
Some were spotted in the latest runs, see https://github.com/endoflife-date/release-data/actions/runs/13215761680.
2025-02-08 17:34:13 +01:00
Marc Wrobel
59b6e6aa7c [pan-os] Add automation for versions retrieval (#371)
Based on https://github.com/mrjcap/panos-versions/.

Closes #370.
2024-08-15 12:19:54 +02:00
Marc Wrobel
f238224681 [chef-inspec] Use GitHub releases instead of git tags (#367)
GitHub releases gives better dates than git tags.
2024-08-13 22:20:36 +02:00
Romain
cb0aa83225 [subversion] Add automation (#360)
Will be used by https://github.com/endoflife-date/endoflife.date/pull/5567.

---------

Co-authored-by: Marc Wrobel <marc.wrobel@gmail.com>
2024-08-04 19:30:09 +02:00
Marc Wrobel
0ade677365 Do not fail in update.py if a product cannot be loaded (#357)
Such errors prevent the script to run.
2024-07-19 22:58:10 +02:00
Nemo
17a5b34816 [libreoffice] Add automation (#354) 2024-06-23 13:01:20 +02:00
Marc Wrobel
08d4ea469e Do not use wait_until='networkidle' by default with fetch_javascript_url (#340)
It does not work in all situation, especially with GitHub-rendered markdown files.
2024-04-02 23:17:51 +02:00
Marc Wrobel
812565e977 Rename support fields to align with eol fields (#338)
Companion PR of https://github.com/endoflife-date/endoflife.date/pull/4931.
2024-04-02 21:41:18 +02:00
Marc Wrobel
0accf350b2 Natively support the %m/%Y and %m-%Y date formats 2024-03-15 23:35:54 +01:00
Marc Wrobel
2f35f1a8c5 [release_table] Allow clicking on page after the JavaScript rendering (#329)
This allows more elements to be rendered before parsing the page.
2024-03-08 23:57:48 +01:00
Marc Wrobel
725ed07ab1 [release_table] Ignore future releases by default (#325) 2024-03-03 17:00:27 +01:00
Marc Wrobel
f6b1e3abed Natively support the %Y/%m/%d date format
For parsing dates such as 2020/01/25, as seen on https://github.com/envoyproxy/envoy/blob/main/RELEASES.md#major-release-schedule.
2024-02-23 23:38:44 +01:00
Marc Wrobel
8fff6e9cbe Natively support the %Y-%b-%d date format
For parsing dates such as 2020-Jan-01, as seen on https://www.electronjs.org/docs/latest/tutorial/electron-timelines.
2024-02-23 23:22:22 +01:00
Marc Wrobel
d1a4918534 Fix report.py 2024-02-22 21:32:00 +01:00
Marc Wrobel
2d5145444b [apple] Adapt script for single-product usage (#317)
Make the Apple script compatible with the way update.py now works, which is 'product' oriented, meaning the script will be called once for each product.

To minimize the impacts the responses are now cached to avoid rate-limiting by support.apple.com.

Version patterns have also been moved to product's auto configuration to make future changes simpler.
2024-02-21 00:21:07 +01:00
Marc Wrobel
c968456d3d [release_table] Improve script for Debian (#315)
- add an 'ignore_empty_releases' to exclude empty releases (which are future releases for Debian),
- improve logging,
- add the 'YYYY-mm' month_year date format.
2024-02-19 22:45:01 +01:00
Marc Wrobel
b10eb19e32 Raise error when a script did not perform any update in a product (#311) (#311)
This is better than just checkin if both the releases and versions list are empty.
2024-02-17 11:13:53 +01:00
Marc Wrobel
9cf243a10e Fix scripts requiring rendering pages with javascript (#310)
Replace request_html by playwright, as request_html, as it is [not maintained anymore](https://pypi.org/project/requests-html/) and scripts using it, such as artifactory.py, started to fail.
2024-02-16 23:13:42 +01:00
Marc Wrobel
1175756d11 Fix releasedata.py (#308)
Release data were not loaded in the `ProductData#__enter__` method. Data would be lost for auto configuration declaring an auto method updating releases followed by an auto method updating versions.

Also raise an error when product data are completely empty after the update, preventing the product data to be updated at all. This does not catch all types of errors (what if the second script silently fails completely ?), but that's a start.
2024-02-16 21:06:41 +01:00
Marc Wrobel
a801200c11 [release_table] Improve script (#305)
- Add strict typing to the fields. This makes the script fail if some column does not have the expected type (for example because of a change in the HTML page).
- Support regex and templating for all fields (not only the releaseCycle). This make it possible to extract only the necessary information without having to do some sort of 'magic' cleanup (replacements in dates have been reverted).
- Do not inject 'releaseCycle' anymore in the JSON (there is already the name).
2024-02-15 00:12:50 +01:00