| Summary: | Convert a significant part of our test fixtures to use AQL | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Pierre-Charles David <pierre-charles.david> | ||||
| Component: | Core | Assignee: | Cedric Brun <cedric.brun> | ||||
| Status: | CLOSED FIXED | QA Contact: | Vincent Richard <vincent.richard> | ||||
| Severity: | major | ||||||
| Priority: | P1 | CC: | maxime.porhel, vincent.richard | ||||
| Version: | 3.0.0 | Keywords: | triaged | ||||
| Target Milestone: | 3.1.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| See Also: |
https://git.eclipse.org/r/49889 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=329579570565635ae8ef6fd080a2e3309c0ab155 https://git.eclipse.org/r/54664 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=be1728d240339b637e9ff1974d7cdf342df2b5c4 |
||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 470460 | ||||||
| Attachments: |
|
||||||
|
Description
Pierre-Charles David
WARNING: this patchset contains 2877 new lines of code and may require a Contribution Questionnaire (CQ) if the author is not a committer on the project. Please see:https://wiki.eclipse.org/Project_Management_Infrastructure/Creating_A_Contribution_Questionnaire Gerrit change https://git.eclipse.org/r/49889 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=329579570565635ae8ef6fd080a2e3309c0ab155 New Gerrit change created: https://git.eclipse.org/r/54664 Gerrit change https://git.eclipse.org/r/54664 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=be1728d240339b637e9ff1974d7cdf342df2b5c4 (In reply to Eclipse Genie from comment #4) > Gerrit change https://git.eclipse.org/r/54664 was merged to [master]. > Commit: > http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/ > ?id=be1728d240339b637e9ff1974d7cdf342df2b5c4 This commit brings the migration of legacy expressions to 97%, about 20 expressions are not migrated because either : - the expression is using nSort and AQL still lack sortedBy() (see Bug 473069) - the expression is using current("SomeType") and requires a deeper understanding and specific tests Note that the source code of the tests itself is still using the legacy interpreter through expressions which are computed as strings. Searching for "<%" in the source code brings 303 matches). This means the plugin is not quite ready to drop its dependency on the legacy interpreter but this amount of use of AQL is enough to close this ticket IMO. Note also that migrating the swtbot tests looks like something we could be achieved quite easily as we need to migrate about 50 expressions in additions to those already migrated for JUnit and only 9 matches for "<%" in the source code. Created attachment 256245 [details] .queryrewriter model used to capture the translation Model to be used with the tooling https://github.com/cbrun/sirius-query-rewriter and capturing the migration rules. No validation: Technical issue (In reply to Cedric Brun from comment #5) > (In reply to Eclipse Genie from comment #4) > > Gerrit change https://git.eclipse.org/r/54664 was merged to [master]. > > Commit: > > http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/ > > ?id=be1728d240339b637e9ff1974d7cdf342df2b5c4 > > This commit brings the migration of legacy expressions to 97%, about 20 > expressions are not migrated because either : > - the expression is using nSort and AQL still lack sortedBy() (see Bug > 473069) > - the expression is using current("SomeType") and requires a deeper > understanding and specific tests > > Note that the source code of the tests itself is still using the legacy > interpreter through expressions which are computed as strings. Searching for > "<%" in the source code brings 303 matches). This means the plugin is not > quite ready to drop its dependency on the legacy interpreter but this amount > of use of AQL is enough to close this ticket IMO. > > Note also that migrating the swtbot tests looks like something we could be > achieved quite easily as we need to migrate about 50 expressions in > additions to those already migrated for JUnit and only 9 matches for "<%" in > the source code. The work which is remaining to completely remove the dependency is tracked in Bug 478878 Available in Sirius 3.1.0. |