Commits (73)
-
Yusei Tahara committed
-
Roque committed
-
…ge be wiser and really check if neeeded Test Suite class exists before trying to load it.
Ivan Tyagov committed -
useStdin=False => temporary file was not created. useStdin=True => temporary file was created.
Arnaud Fontaine committed -
Arnaud Fontaine committed
-
… include any kind of objects and not only modules. This fixes Products.ERP5VCS.Git module not being displayed because Products.ERP5VCS.__init__ only imports one of its class and not the whole module (and the module was not imported anywhere else too) so it was not in Products.ERP5VCS.__dict__.
Arnaud Fontaine committed -
Their reference will not have the -repository prefix, so TestResult_getTestSuiteData should do similar processing to find the corresponding test suite repositories from reference.
Jérome Perrin committed -
parsing of reference in TestResult_getTestSuiteData did not handle properly buildout section ids with -, this was causing File "Script (Python)", line 30, in TestResult_getTestSuiteData buildout_section_id_and_commits_count, revision = repository_string.split('-') ValueError: too many values to unpack
Jérome Perrin committed -
* pylint may return a false positive error which have to be disabled and failing to import it because of that requires to edit on the FS and try again so it is not practical for a whole Product. Instead it is easier to import it and not validate * Validation was done only for 'Test Component' and 'Extension Component', but all imported Components had their consistency and source code checked and this is not consistent to not validate but do these checks. * importFromFilesystem() was checking consistency and source code, and this was done again when validating. So leave the imported ZODB Components as draft and let the developer fixes issues upon validation before committing.
Arnaud Fontaine committed -
Arnaud Fontaine committed
-
Conversion Server code is no longer bound to OOo, as emphasized by: * Renaming of Preference Properties ooodoc_server* to document_conversion_server*. * Conversion Server exceptions are already defined in Document.py. * Conversion Server also handles video/audio/... conversions. Thus, refactor the code to connect to Conversion Server by moving it from Products.ERP5OOo.Document to Products.ERP5.Document.Document (while keeping backward compatibility): * Renamed: + OOoServerProxy => DocumentConversionServerProxy + OOO_SERVER_PROXY_TIMEOUT => DOCUMENT_CONVERSION_SERVER_PROXY_TIMEOUT + OOO_SERVER_RETRY => DOCUMENT_CONVERSION_SERVER_RETRY * Moved: + enc + dec + global_server_proxy_uri_failure_time Also, Introduced erp5.module.TransformLib (in erp5_core as currently all Transforms are there even though it should probably not be so) to define DocumentConversionServerTransform and which will hold libtransforms content when this will be moved to ZODB Components. Note: Ideally, OOOdCommandTransform should inherit from DocumentConversionServerTransform but wkhtmltopdf Handler on Cloudooo side is a hack only implemented in Manager.convertFile() whereas OOOdCommandTransform still uses legacy Manager.run_generate(), so leave it as it is to avoid breaking things (this will be addressed in a separate MR). /reviewed-on !955
Arnaud Fontaine committed -
…/01 new Japanese VAT ratio support. Based on the following ODT Templates (erp5_invoicing): * Invoice_viewAsODT.oot. * Invoice_viewAsODTStyles_l10n_ja.oot. wkhtmltopdf template is based on work from slapos_accounting bt5: * SaleInvoiceTransaction_viewSlapOSPrintout.zpt. * SaleInvoiceTransaction_getSlapOSPrintout.css.zpt.
Arnaud Fontaine committed -
Ivan Tyagov committed
-
Sven Franck committed
-
Romain Courteaud committed
-
Bryton Lacquement committed
-
Bryton Lacquement committed
-
test_04c_startTestSuiteOrderWithManyTestNodes is using same test results names ("test suite 1", "test suite 2", ...) as some previous tests ( test_04b_startTestSuiteOrder ) so it's safer to start the test by cancelling all previous test runs and renaming them. /reviewed-on !959
Jérome Perrin committed -
We want to have FAILED test results before PASSED, to easily see the failed tests. Apparently this was a local change on nexedi ERP5 for some time but the change got lost in last update. Let's commit it to make this permanent. /reviewed-on !960
Jérome Perrin committed -
This test was using a blind `pause` instead of an explicit waitFor*, so it was failing when machine was not fast enough. Also refactor the test a bit to simplify the assertion by first selecting the iframe we are going to inspect and make the test compatible with both chrome and firefox - they behave differently when interpreting new lines in selenium test tables. /reviewed-on !967
Jérome Perrin committed -
Ivan Tyagov committed
-
This is a fixup for commit 1519d81a. There was a typo.
Bryton Lacquement committed -
Sven Franck committed
-
Sometimes validator.erp5.net replies with error code 502 and this cause ERP5 tests to fail. While this is a bit like ignoring problems, problems with validator.erp5.net should not impact ERP5 tests results. /reviewed-on !968
Jérome Perrin committed -
Because this is using SQLDict, when we had multiple conversion activities for the same path with different conversion parameters, only one was executed. We don't want this here, as the recent failures on testDmsWithPreConversion.TestDocumentWithPreConversion are showing, when the same image is referenced with different conversion parameters we want to pre-convert for all conversion parameters. Use SQLQueue, which allows calling the same method more than once. /reviewed-on !971
Jérome Perrin committed -
Jérome Perrin committed
-
…arning}_message_list properties. So only check source code and validate when _set{TextContent,Reference,Version} are called and remove wildcards.
Arnaud Fontaine committed -
Until now it was disabled which means that if Component A imports Component B and the latter is not in {validated,modified} state, Component A could be validated without raising any error and failed at execution time. As this relies on Pylint transform/hook and avoiding monkey patch as much as possible, make Products.ERP5Type.patches.pylint available for Python3 (not actually tested with ERP5 but no AttributeError nor ImportError with Python3 with this code). Also, allow developer to call validate action from 'modified' state to handle import use case: 1. Edit A which raises an error stating that B. 2. Fix B and validate it. 3. Validate again A without requiring a modification of {reference,version,text_content}.
Arnaud Fontaine committed -
Arnaud Fontaine committed
-
Sebastien Robin committed
-
Ivan Tyagov committed
-
…ified' state to handle import use case" (part of 1cb2dc4c). This was badly implemented as it didn't handle the following use cases: * {draft,invalidated} => validated. * clearRecordedPropertyDict() was not called on re-validate. For now, re-validate through modifying {text_content,reference,version}.
Arnaud Fontaine committed -
…nd should not be modified later on (cf632afb).
Arnaud Fontaine committed -
Guarded with Manager role, as they allow exporting entire source files & scripts.
Vincent Pelletier committed -
Arnaud Fontaine committed
-
While deploying !924 we found out that this script was not working in these cases: * when buildout section id contains `-repository` there's a convention that this is stripped and does not appear in test result reference ( implemented [here](https://lab.nexedi.com/nexedi/erp5/blob/31804f683fd36322fb38aeb9654bee70cebe4fdb/erp5/util/testnode/NodeTestSuite.py#L95) ) * when buildout section id contains `-` this script crash * when there's no buildout section id and there's no fix for that, because buildout section id is a required property. If we encounter this failure, we fix the data by putting a buildout section id on test suite repository. /reviewed-on !961
Jérome Perrin committed -
Because gitlab way of passing project ID as user/project URL-encoded does not support dots (it would needs to be encoded as %2E) and that requests rewrites %2F from URL to . (which is probably correct, that's the RFC), we cannot use encoded paths for when they contain a dot. To workaround this, when user or repo as a dot, make another API call to get the numerical project ID and use that instead. We only do that for projects with a dot because that's an extra request we'd like to avoid. /reviewed-on !962
Jérome Perrin committed -
The previous way of using portal.ERP5Site_absoluteUrl() + test_result.getRelativeUrl() could not work with ERP5JS URLs. To be compatible with this and also maybe erp5_web-style URLs if we want to link to public tests results, we should have more flexibility in how we generate URLs. Introduce a "test result url template" property on gitlab connector, see unit test for a renderjs ui compatible usage. /reviewed-on !963
Jérome Perrin committed -
When a commit is no longer reachable from a branch, gitlab API does not allow annotating the commit. This happens quite often when we push force in the branch after test result started to run on this branch. /reviewed-on !972
Jérome Perrin committed -
This is to support SLAPOS-EGG-TEST which runs tests for multiple repositories from the same test suite. Evaluating each commit from each repository with the result of the test result is problematic because every time one test fail, all repositories are marked as failed. Introduce a new property on test result repository to optionally define the pattern of test result line to consider for this repository. This way, with our SLAPOS-EGG-TEST running tests for slapos, slapos.core, ... etc and producing test result line with the same title as the repository name, we can use something like `slapos$` (the pattern is a regular expression) to match only slapos, `slapos\.core` to match only slapos.core etc. This also allow to define more complex relation if necessary, for example kedifa and caucase seems related, maybe we want to configure so that a failure on kedifa test suite marks the commits from both kedifa and caucase as failed (or maybe not, but at least this way should make it possible) /reviewed-on !964
Jérome Perrin committed -
Romain Courteaud committed
-
Romain Courteaud committed
-
Romain Courteaud committed
-
Romain Courteaud committed
-
Romain Courteaud committed
-
Romain Courteaud committed
-
Romain Courteaud committed
-
Add a new url_generator mode Do not redirect to 'view': let the js handle the default navigation Do not generate view url if document does not acquire the hal web section
Romain Courteaud committed -
Romain Courteaud committed
-
Fields must propagate all values requested by ERP5.
Romain Courteaud committed -
This is needed for compatibility with existing actions.
Romain Courteaud committed -
>>> True and [(1,2)] [(1, 2)] >>> False and [(1,2)] False >>> [] and [(1,2)] []
Romain Courteaud committed -
Romain Courteaud committed
-
Romain Courteaud committed
-
Romain Courteaud committed
-
Romain Courteaud committed
-
This is a backport from Zope (see commit 9c8dd7672cbef67573b3641178f12337c80de074).
Bryton Lacquement committed -
This fixes the issue that a truncated traceback followed the json.
Bryton Lacquement committed -
Romain Courteaud committed
-
Moved 'git_askpass' shell script to product/ERP5/bin (considering that this is a very short shell script which hasn't changed in 7 years, no need to move it to the ZODB which would require creating a temporary file...). After updating erp5_forge, you should delete 'product/ERP5VCS/' directory as this will only contain '.pyc' files. /reviewed-on !973
Arnaud Fontaine committed -
* This didn't work anyway with concurrent processes using the same SVN working copy (which is a frequent use case nowadays). * Now that it has been migrated to ZODB Components, this also breaks on reset: 1) Thread T1 acquires the lock. 2) Thread T2 performs a reset. 3) Thread T2 loads Subversion and thus a new RLock instance is created. => T2 can acquire the lock.
Arnaud Fontaine committed -
Romain Courteaud committed
-
As was initially intended, but visible a directory level got lost in an intermediate patch file.
Vincent Pelletier committed -
Vincent Pelletier committed
-
This allow using measure.updateCellRange to create varianted measures programmatically. Remove the TALES for lines, columns and tab on the matrix box because the default behavior is to call this updateCellRange script /reviewed-on !974
Jérome Perrin committed -
These are only accessed within methods which are not reachable from this SearckKey type, so this was essentially dead code.
Vincent Pelletier committed -
Also, add a missing ignore_unknown_columns parameter.
Vincent Pelletier committed -
Vincent Pelletier committed
-
Scriptable keys are already handled by other branches below. If one wants to provide a string or dict value to a scriptable key, they need to wrap it into another type to disable catalog processing of these values.
Vincent Pelletier committed -
To avoid duplicating _processSearchValue.
Vincent Pelletier committed -
Romain Courteaud committed
-
Romain Courteaud committed
Showing
238 changed files
with
3244 additions
and
152 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_getProfiler.xml
0 → 100644
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_profileContext.py
0 → 100644
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_profileProcess.py
0 → 100644