-
Notifications
You must be signed in to change notification settings - Fork 0
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
Postgres Support #1914
base: master
Are you sure you want to change the base?
Postgres Support #1914
Conversation
In GitLab by @LuiggiTenorioK on May 6, 2024, 16:05 mentioned in merge request ces/autosubmit4-config-parser!4 |
In GitLab by @LuiggiTenorioK on May 6, 2024, 17:25 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 7, 2024, 10:57 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 7, 2024, 15:56 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 7, 2024, 16:53 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 8, 2024, 11:02 marked the checklist item update db_manager.py as completed |
In GitLab by @LuiggiTenorioK on May 8, 2024, 11:03 marked the checklist item update db_structure.py as completed |
In GitLab by @LuiggiTenorioK on May 8, 2024, 12:22 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 8, 2024, 14:04 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 8, 2024, 16:49 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 9, 2024, 15:58 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 9, 2024, 17:07 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 10, 2024, 12:10 added 1 commit
|
In GitLab by @kinow on May 13, 2024, 11:20 Commented on setup.py line 112
Otherwise, users that want SQLite will have to install the Postgres package psycopg2 anyway. I think it'd be better if the users only got required runtime dependencies installed instead. e.g. diff --git a/setup.py b/setup.py
index e1fe0b0d..c2dcb9a7 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,55 @@ here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'VERSION')) as f:
version = f.read().strip()
+install_requires = [
+ 'zipp>=3.1.0',
+ 'setuptools>=68.0.0',
+ 'cython',
+ 'autosubmitconfigparser==1.0.61',
+ 'paramiko>=3.4',
+ 'bcrypt>=3.2',
+ 'PyNaCl>=1.5.0',
+ 'configobj>=5.0.6',
+ 'python-dateutil>=2.8.2',
+ 'matplotlib < 3.5.2',
+ 'py3dotplus>=1.1.0',
+ 'pyparsing>=3.0.7',
+ 'portalocker>=2.3.2,<=2.7.0',
+ 'networkx==2.6.3',
+ 'requests>=2.27.1',
+ 'bscearth.utils>=0.5.2',
+ 'cryptography>=36.0.1',
+ 'xlib>=0.21',
+ 'pip>=22.0.3',
+ 'ruamel.yaml==0.17.21',
+ 'pythondialog',
+ 'six>=1.10.0',
+ 'Pygments',
+ 'packaging==20',
+ 'wheel',
+ 'psutil',
+ 'rocrate==0.*',
+ 'SQLAlchemy~=2.0.23'
+]
+
+tests_require = [
+ 'coverage',
+ 'mock>=4.0.3',
+ 'nose',
+ 'pytest',
+ 'pytest-cov'
+]
+
+pg_require = [
+ 'psycopg2>=2.9.9'
+]
+
+extras_require = {
+ 'tests': tests_require,
+ 'postgres': pg_require,
+ 'all': tests_require + pg_require
+}
+
setup(
name='autosubmit',
license='GNU GPL v3',
@@ -39,76 +88,8 @@ setup(
url='http://www.bsc.es/projects/earthscience/autosubmit/',
download_url='https://earth.bsc.es/wiki/doku.php?id=tools:autosubmit',
keywords=['climate', 'weather', 'workflow', 'HPC'],
- # same but formatted
- # zipp>=3.1.0
- # setuptools>=60.8.2
- # cython
- # autosubmitconfigparser==1.0.61
- # paramiko>=3.4
- # bcrypt>=3.2
- # PyNaCl>=1.5.0
- # configobj>=5.0.6
- # python-dateutil>=2.8.2
- # matplotlib == 3.8.3
- # py3dotplus>=1.1.0
- # pyparsing>=3.0.7
- # mock>=4.0.3
- # portalocker>=2.3.2,<=2.7.0
- # networkx==2.6.3
- # requests>=2.27.1
- # bscearth.utils>=0.5.2
- # cryptography>=36.0.1
- # xlib>=0.21
- # pip>=22.0.3
- # ruamel.yaml==0.17.21
- # pythondialog
- # pytest
- # nose
- # coverage
- # six>=1.10.0
- # Pygments
- # packaging==20
- # typing>=3.7
- # wheel
- # psutil
- # rocrate==0.*
- install_requires=[
- 'zipp>=3.1.0',
- 'setuptools>=68.0.0',
- 'cython',
- 'autosubmitconfigparser==1.0.61',
- 'paramiko>=3.4',
- 'bcrypt>=3.2',
- 'PyNaCl>=1.5.0',
- 'configobj>=5.0.6',
- 'python-dateutil>=2.8.2',
- 'matplotlib < 3.5.2',
- 'py3dotplus>=1.1.0',
- 'pyparsing>=3.0.7',
- 'mock>=4.0.3',
- 'portalocker>=2.3.2,<=2.7.0',
- 'networkx==2.6.3',
- 'requests>=2.27.1',
- 'bscearth.utils>=0.5.2',
- 'cryptography>=36.0.1',
- 'xlib>=0.21',
- 'pip>=22.0.3',
- 'ruamel.yaml==0.17.21',
- 'pythondialog',
- 'pytest',
- 'nose',
- 'coverage',
- 'six>=1.10.0',
- 'Pygments',
- 'packaging==20',
- 'wheel',
- 'psutil',
- 'rocrate==0.*',
- 'SQLAlchemy~=2.0.23',
- 'psycopg2>=2.9.9',
- 'pytest',
- 'pytest-cov'
- ],
+ install_requires=install_requires,
+ extras_require=extras_require,
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.9", |
In GitLab by @kinow on May 13, 2024, 11:21 Commented on setup.py line 112 With that I think
|
In GitLab by @LuiggiTenorioK on Aug 20, 2024, 15:49 added 1 commit
|
In GitLab by @LuiggiTenorioK on Aug 20, 2024, 16:59 added 1 commit
|
In GitLab by @LuiggiTenorioK on Aug 21, 2024, 11:30 added 1 commit
|
In GitLab by @LuiggiTenorioK on Aug 21, 2024, 11:34 Commented on autosubmit/autosubmit.py line 879 Working on the next step of the refactor: change parts of the code that assume dir or files are existent. @kinow I will need help reviewing these cases later. |
In GitLab by @kinow on Aug 21, 2024, 11:36 Commented on autosubmit/autosubmit.py line 879 Roger that. Thanks Luiggi! |
In GitLab by @LuiggiTenorioK on Aug 21, 2024, 12:38 Tested the latest changes with docker-compose with the following commands:
Everything seems to work fine until there and there is no
|
In GitLab by @LuiggiTenorioK on Aug 21, 2024, 15:00 added 3 commits |
In GitLab by @LuiggiTenorioK on Aug 21, 2024, 15:29
Fixed ✅ Now there is an issue on:
It tries to save the
|
In GitLab by @dbeltrankyl on Aug 21, 2024, 15:40 Hello @LuiggiTenorioK The timeout, is derived from the hotfix we did for v4.1.10. Is because some logs have not been recovered and could never be( the could never be is the issue and only happens in some cases and for the last logs since the addition of the hotfix). I hope to push a new merge request that includes a new implementation ( + a flowchart to explain the new design) to fix that and the zombies/orphan and will ask for a review. I already found/implemented some possible fixes but is not finished |
In GitLab by @LuiggiTenorioK on Aug 21, 2024, 15:43 Thanks @dbeltrankyl! That's good to know so I can focus on what is only related to the DB 🙌 |
In GitLab by @LuiggiTenorioK on Aug 22, 2024, 15:44 added 2 commits
|
In GitLab by @LuiggiTenorioK on Aug 23, 2024, 17:02 added 1 commit
|
In GitLab by @LuiggiTenorioK on Aug 26, 2024, 10:03 added 1 commit
|
In GitLab by @LuiggiTenorioK on Aug 26, 2024, 13:45 added 1 commit
|
In GitLab by @LuiggiTenorioK on Aug 26, 2024, 15:31 @dbeltrankyl I found something weird in autosubmit while debugging in this branch and the master one. It happens that, when you do This is not critical since Autosubmit will use one of them in the run but this issue may break some other things that we unexpected PD: @kinow omitting this issue. It seems that the |
In GitLab by @kinow on Aug 26, 2024, 16:10 Great news Luiggi! How are the unit tests going? Will it be easy to get the build passing? |
In GitLab by @LuiggiTenorioK on Aug 26, 2024, 16:31
I added tests for both DB Managers in the history module ( About the CI, we need:
|
In GitLab by @LuiggiTenorioK on Aug 27, 2024, 11:05 added 1 commit
|
In GitLab by @LuiggiTenorioK on Aug 27, 2024, 11:32 added 3 commits |
In GitLab by @LuiggiTenorioK on Aug 27, 2024, 12:30 added 2 commits |
In GitLab by @dbeltrankyl on Aug 28, 2024, 10:51 Hello @LuiggiTenorioK Sorry the late answer
Thanks for the report. Has it been happening since 4.1.10? Or earlier? Some of the work is done by the process that recovers the log ( as it also recovers the STAT file ). But the submission time is done outside that process.
I'll test in !475 if it still happens with the last changes. How can I reproduce the issue? Is doing |
In GitLab by @LuiggiTenorioK on Aug 29, 2024, 09:27
Yes, it happens when doing |
In GitLab by @LuiggiTenorioK on Aug 29, 2024, 17:02 added 3 commits
|
In GitLab by @LuiggiTenorioK on Sep 4, 2024, 16:20 added 38 commits
|
In GitLab by @LuiggiTenorioK on Sep 4, 2024, 16:46 added 1 commit
|
In GitLab by @LuiggiTenorioK on Sep 19, 2024, 15:51 added 1 commit
|
In GitLab by @LuiggiTenorioK on Sep 20, 2024, 09:46 added 8 commits
|
In GitLab by @LuiggiTenorioK on Sep 26, 2024, 13:27 added 19 commits
|
In GitLab by @LuiggiTenorioK on Sep 26, 2024, 13:42 added 1 commit
|
In GitLab by @LuiggiTenorioK on May 6, 2024, 15:59
Merge request to support Postgres #1285