Commit Graph

1577 Commits

Author SHA1 Message Date
Marc Wrobel
0d17306872 Simplify date parsing (#195)
Create common functions parse_date, parse_month_year_date and parse_datetime.

Those functions support trying multiple formats, and come with default formats lists that support most of the date format encountered so far.

Notable change: year-month dates are now set to the end of month (impacted couchbase-server and ibm-aix).
2023-11-26 21:01:35 +01:00
Marc Wrobel
1e65a048b0 Improve retry mechanism (#194) (#194)
When a ChunkedEncodingError occurs, request and response are not set and there is no way to get the URL that causes the error.
With this change all URLs are retried. The max_retries parameter is decreased each time so that we do not get stuck in an infinite loop.

I also considered to also wait before retrying, but for now I don't see any benefit to it.

Relates to #188.
2023-11-26 19:00:32 +01:00
Marc Wrobel
37683f9677 [splunk] Make HTTP requests in parallel (#193)
It cuts the script execution time roughly by three during my tests.
2023-11-26 15:54:45 +01:00
Marc Wrobel
90658a356d Try to fix fetch_urls when ChunkedEncodingError occurs (#188) 2023-11-26 15:31:12 +01:00
Marc Wrobel
9ef4494775 [couchbase] Make HTTP requests in parallel (#191)
It cuts the script execution time roughly by two during my tests.
2023-11-26 15:23:20 +01:00
Marc Wrobel
981eef5b62 [haproxy] Make HTTP requests in parallel (#192)
It cuts the script execution time roughly by three during my tests.
2023-11-26 15:22:56 +01:00
github-actions[bot]
b9e27ab45a 🤖: ios, macos
ios: 4.2, 4.1, 4.0.2, 3.2.2, 3.1.3, 3.1.1, 3.1, 3.0.1, 3.0, 3, 2.2, 2.1, 2.0, 1.1.3, 1.1.2, 1.1.1, 1.0.1
macos: 10.6.5
2023-11-26 14:18:33 +01:00
Marc Wrobel
1e8a84ec77 [apple] Add back web.archive.org links (#190)
The issue was with couchbase, for which the webarchive.org link is now dead.
2023-11-26 14:18:33 +01:00
Marc Wrobel
79f7e13dd9 [cos] Make HTTP requests in parallel (#187)
Its cuts the script execution time roughly by two during my tests.
2023-11-26 14:00:42 +01:00
github-actions[bot]
a52b9fc21f 🤖: watchos
watchos: 6.2.1
2023-11-26 13:59:33 +01:00
Marc Wrobel
7907243967 [apple] Make HTTP requests in parallel (#185)
Use the new endoflife.fetch_urls to fetch URLs. This is a bit more efficient, especially when network is slow.

Also update the way rows without a proper date format are excluded by checking the format first. I don't know why, but this fixed a bit the script, as now the 6.2.1 is properly retrieved and parsed.
2023-11-26 13:59:22 +01:00
Marc Wrobel
7b90c02f62 Try to fix fetch_urls when ChunkedEncodingError occurs (#188) 2023-11-26 13:58:27 +01:00
Hugo van Kemenade
ce8e53213e Only deploy for upstream (#186) 2023-11-26 13:29:27 +01:00
Hugo van Kemenade
1022d8f816 Fix some lint warnings (#189)
Remove unused imports or variable, and apply suggestions from https://adamj.eu/tech/2019/09/12/how-i-import-pythons-datetime-module/.
2023-11-26 13:25:04 +01:00
Marc Wrobel
f59390815c Try to fix fetch_urls when ChunkedEncodingError occurs (#188)
Intermittent ChunkedEncodingErrors occurs while fetching URLs. This change try to fix it by retrying.
According to https://stackoverflow.com/a/44511691/374236, most servers transmit all data, but that's not what was observed.

For future reference the traceback was:

```
  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/home/runner/work/release-data/release-data/src/firefox.py", line 36, in <module>
      for response in endoflife.fetch_urls(urls):
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/work/release-data/release-data/src/common/endoflife.py", line 55, in fetch_urls
      return [future.result() for future in as_completed(futures)]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/work/release-data/release-data/src/common/endoflife.py", line 55, in <listcomp>
      return [future.result() for future in as_completed(futures)]
              ^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/concurrent/futures/_base.py", line 449, in result
      return self.__get_result()
             ^^^^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
      raise self._exception
    File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/concurrent/futures/thread.py", line 58, in run
      result = self.fn(*self.args, **self.kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
      resp = self.send(prep, **send_kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/requests/sessions.py", line 747, in send
      r.content
    File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/requests/models.py", line 899, in content
      self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b""
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/requests/models.py", line 818, in generate
      raise ChunkedEncodingError(e)
  requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
```
2023-11-26 13:23:17 +01:00
Marc Wrobel
ca689dc373 Support parallel URL fetching via endoflife.fetch_urls (#184)
Move the parallel URL fetching from firefox.py to endoflife.py to make available parallel URL fetching for all scripts.

Also a a fix found on https://stackoverflow.com/a/44511691/374236 to avoid ChunkedEncodingError.
2023-11-26 11:34:18 +01:00
github-actions[bot]
3424d04ce0 🤖: firefox
firefox: 117.0
2023-11-26 06:40:22 +00:00
github-actions[bot]
c320afc4b5 🤖: aws-lambda, firefox, perl, red-hat-openshift
aws-lambda:
firefox:
perl: 5.38.1, 5.36.2, 5.34.2
red-hat-openshift: 4.14.3, 4.13.23, 4.12.44
2023-11-26 01:51:59 +00:00
github-actions[bot]
953f203992 🤖: aws-lambda, gerrit, vue
aws-lambda:
gerrit: 3.9.0, 3.8.3
vue: 3.3.9
2023-11-25 12:05:19 +01:00
Marc Wrobel
deb5d9f1a2 [firefox] Simplify script
- use requests_futures instead of managing concurrency manually,
- drop retrieval of versions < 10.0 to not make the parsing too complex.
2023-11-25 12:05:19 +01:00
Marc Wrobel
f0324372d9 Use request instead of urllib for HTTP requests
It's simpler to use, and provides better retry capabilities.
2023-11-25 00:08:47 +01:00
github-actions[bot]
552b129cf9 🤖: aws-lambda
aws-lambda:
2023-11-24 21:37:36 +00:00
Marc Wrobel
6023ccc257 [aws-lambda] Fix script
Returning a default date far in the future makes the latest.py script fail.
2023-11-24 22:26:32 +01:00
github-actions[bot]
394a6ffd75 🤖: akeneo-pim, api-platform, gerrit, neo4j, sqlite
akeneo-pim: 7.0.40, 6.0.110
api-platform: 3.2.6
gerrit: 3.7.6
neo4j: 5.14.0
sqlite: 3.44.2
2023-11-24 18:39:25 +00:00
github-actions[bot]
1d0fe3fa09 🤖: craft-cms
craft-cms: 4.5.11.1
2023-11-24 06:40:12 +00:00
github-actions[bot]
2286af2bfb 🤖: gerrit
gerrit: 3.6.8
2023-11-24 01:39:40 +00:00
github-actions[bot]
add9f4c912 🤖: Automatic Update 2023-11-23 21:09:44 +00:00
Marc Wrobel
2e83befe93 [aws-lambda] Add automation (#166)
The purpose of this new script is to be alerted of new runtimes, while not making updates to the original product file (because release dates cannot be fetched from AWS documentation).
2023-11-23 22:02:51 +01:00
github-actions[bot]
c555f7ad05 🤖: etcd, keycloak, nextcloud, openssl, php, proxmox-ve, spring-boot
etcd: 3.4.28
keycloak: 23.0.0
nextcloud: 27.1.4, 26.0.9
openssl: 3.2.0
php: 8.3.0
proxmox-ve: 8.1
spring-boot: 3.2.0
2023-11-23 18:40:02 +00:00
github-actions[bot]
99f4aee3c5 🤖: kotlin, pan-os, php, spring-boot, spring-framework, unity
kotlin: 1.9.21
pan-os: 11.1
php: 8.2.13
spring-boot: 3.1.6, 3.0.13, 2.7.18
spring-framework: 6.1.1
unity: 2022.3.14f1
2023-11-23 12:56:58 +00:00
github-actions[bot]
25349252e9 🤖: electron
electron: 27.1.2, 26.6.1, 25.9.6
2023-11-23 01:43:27 +00:00
github-actions[bot]
61a4361911 🤖: nodejs, plesk, redhat-satellite, sqlite
nodejs: 20.10.0
plesk: 18.0.57.1
redhat-satellite: 6.13.6
sqlite: 3.44.1
2023-11-22 18:46:10 +00:00
github-actions[bot]
f0cb66f663 🤖: artifactory, quarkus
artifactory: 7.71.5
quarkus: 2.13.9
2023-11-22 12:54:10 +00:00
github-actions[bot]
c0e7454cb9 🤖: rabbitmq
rabbitmq: 3.12.10
2023-11-22 06:41:20 +00:00
github-actions[bot]
8f3a4e0dca 🤖: amazon-cdk, ansible, openzfs, twig, vuetify
amazon-cdk: 2.110.1
ansible: 9.0.1
openzfs: 2.2.1
twig: 3.8.0
vuetify: 3.4.3
2023-11-22 01:47:11 +00:00
github-actions[bot]
69dc9fd653 🤖: akeneo-pim, ansible, firefox, ionic, jenkins, laravel, nix, quarkus, twig
akeneo-pim: 7.0.39
ansible: 9.0.0
firefox: 120.0, 115.5.0
ionic: 7.5.6
jenkins: 2.433
laravel: 10.33.0
nix: 2.19.1
quarkus: 3.5.3
twig: 2.15.6
2023-11-21 18:41:18 +00:00
github-actions[bot]
76023a562e 🤖: grafana, plesk, typo3
grafana: 10.2.2
plesk: 18.0.57
typo3: 9.5.45, 8.7.56, 10.4.42
2023-11-21 12:57:28 +00:00
github-actions[bot]
c3ac903200 🤖: amazon-linux, rabbitmq
amazon-linux: 2023.2.20231113.0, 2018.03.0.20231106.0, 2.0.20231116.0
rabbitmq: 3.11.26
2023-11-21 06:42:03 +00:00
github-actions[bot]
5969020db4 🤖: angular, nuxt, rocket-chat
angular: 17.0.4
nuxt: 3.8.2
rocket-chat: 6.4.8
2023-11-21 01:46:48 +00:00
github-actions[bot]
ab76a55859 🤖: apache-camel, argocd, drush, log4j, mongodb, nix
apache-camel: 4.0.3
argocd: 2.9.2, 2.8.7
drush: 12.4.3
log4j: 2.22.0
mongodb: 5.0.23
nix: 2.19.0
2023-11-20 18:42:42 +00:00
github-actions[bot]
03321cdc70 🤖: linuxkernel
linuxkernel: 6.6.2, 6.5.12, 6.1.63, 5.4.261, 5.15.139, 5.10.201, 4.19.299, 4.14.330
2023-11-20 12:58:05 +00:00
github-actions[bot]
02fe3105c7 🤖: rockylinux, silverstripe
rockylinux: 8.9
silverstripe: 4.13.10
2023-11-20 01:44:58 +00:00
github-actions[bot]
3575e5fc43 🤖: red-hat-openshift
red-hat-openshift: 4.12.43, 4.14.2, 4.13.22
2023-11-19 01:50:51 +00:00
github-actions[bot]
ff5655288b 🤖: amazon-rds-mysql
amazon-rds-mysql:
2023-11-18 06:38:33 +00:00
github-actions[bot]
f0d2648a4f 🤖: amazon-rds-postgresql, gke-rapid, gke, quarkus
amazon-rds-postgresql: 16.1, 16, 15.5, 14.10, 13.13, 12.17, 11.22
gke-rapid: 1.28.3-gke.1203000, 1.28.3-gke.1118000, 1.27.7-gke.1121000, 1.27.7-gke.1088000, 1.26.10-gke.1101000, 1.26.10-gke.1073000, 1.25.15-gke.1115000, 1.25.15-gke.1083000, 1.24.17-gke.2266000, 1.24.17-gke.2230000
gke: 1.27.7-gke.1121000, 1.27.7-gke.1088000, 1.26.10-gke.1101000, 1.26.10-gke.1073000, 1.25.15-gke.1115000, 1.25.15-gke.1083000, 1.24.17-gke.2266000, 1.24.17-gke.2230000
quarkus: 3.2.9
2023-11-18 01:42:10 +00:00
github-actions[bot]
00c9b3f0f7 🤖: haproxy, oracle-linux, rocket-chat
haproxy: 2.8.4
oracle-linux: 9.3
rocket-chat: 6.4.7, 6.3.12
2023-11-17 18:41:12 +00:00
github-actions[bot]
c087ed05fa 🤖: blender, grafana, rabbitmq, sonarqube
blender: 4.0.1
grafana:
rabbitmq: 3.12.9
sonarqube: 10.3.0
2023-11-17 12:56:30 +00:00
github-actions[bot]
efbbf7feda 🤖: amazon-neptune
amazon-neptune: 1.3.0.0
2023-11-17 06:39:22 +00:00
github-actions[bot]
d7b0d4db14 🤖: amazon-cdk, dbt-core, nextjs, splunk
amazon-cdk: 2.110.0
dbt-core: 1.7.2
nextjs: 14.0.3
splunk: 9.1.2, 9.0.7
2023-11-17 01:43:29 +00:00
github-actions[bot]
ef46e41e22 🤖: akeneo-pim, craft-cms, dbt-core, eurolinux, mongodb, powershell, quarkus, spring-framework, vuetify, wagtail
akeneo-pim: 7.0.38
craft-cms: 4.5.11, 3.9.6
dbt-core: 1.6.9
eurolinux: 9.3
mongodb: 7.1.1, 6.0.12
powershell: 7.4.0, 7.3.10, 7.2.17
quarkus: 3.5.2
spring-framework: 6.1.0, 6.0.14
vuetify: 3.4.2
wagtail: 5.2.1
2023-11-16 18:41:43 +00:00