-
Notifications
You must be signed in to change notification settings - Fork 5
Added jackson libraries with a custom failing test #50
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
base: master
Are you sure you want to change the base?
Conversation
483c8f9
to
373da6f
Compare
a0e3617
to
087f6e4
Compare
|
||
autoConfigureDeps true | ||
forceFilenameCollisionCheck false | ||
translateArgs = ['--segmented-headers', '--extract-unsequenced', '--build-closure'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are required flags to make the build work? If so, please add descriptions for each. You should also use groovy style syntax:
translateArgs '--segmented-headers' // Why this is needed?
translateArgs '--extract-unsequenced' // Why this is needed?
translateArgs '--build-closure' // Why this is needed?
@advayDev1 - is there any issue using --build-closure for the e2e test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove --build-closure from all of the files. If it doesn't build without --build-closure, that means we aren't translating the source jar correctly and/or you don't have all the dependencies listed.
@saruye - please address my comments and then we'll get @advayDev1 to have a look. You can also add a comment or commit message: Fixes #48. That'll automatically close that issue when the PR is merged. Finally in regards to the Jackson bug. Where is that tracked? It sounds like this is a J2ObjC issue rather than the plugin. Is it tracked already? |
/** | ||
* Created by arne on 13.10.15. | ||
*/ | ||
public class GenericsTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does Gson need to be modified?
5786837
to
19a6ccb
Compare
@brunobowden I tried to address all your comments. If I missed something please let me know. I didn't add comments for the translate flags since I couldn't technically explain why they are needed (reduced them to one though). I just know that it doesn't compile without the flag. There might be an import cycle if I understand the flag correctly. I also didn't add the todo because I wasn't sure what to put there since it is mainly a j2objc issue like you said. Should I add something like: I just saw that I missed your comment with the commit message. I'll add this after your next feedback! @advayDev1 I removed the gson code. I added it to see if there was a general limit with generic lists or if this was a specific jackson problem. I left it there because I thought it could help finding the problem. |
} | ||
|
||
j2objcConfig { | ||
// Almost always there are no tests provided in an external source jar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm worried that you don't have autoConfigureDeps true
in here.
thanks @saruye , i've provided more comments. |
also @saruye - you may want to fix your github user config and/or local git config. If all of these accounts are actually you, you should add the appropriate emails at: |
@advayDev1 I worked on your comments. The custom-test was a try to work around the .gitignore and maybe separate between my tests and tests from the developers. I forgot to remove it after I gave up on this approach. |
@advayDev1 in the latest travis build (https://travis-ci.org/j2objc-contrib/j2objc-common-libs-e2e-test/jobs/86138522) all tests did run through. Is it possible that this is because of the plugin update? Locally it is still failing, but I cannot upgrade to xcode 7 yet on my test machine. |
I have not updated the plugin in a while - it could not be that :) |
@saruye - so I'm comparing your failed run to the successful one. You've definitely changed the test itself. On the failure (https://travis-ci.org/j2objc-contrib/j2objc-common-libs-e2e-test/jobs/85500882#L3685) your code was (0b5e511#diff-6b7fe9529973ed103aa4f8d7c95558c3R179). The stack trace is:
Locally is your failure the same? |
I saw your build on travis with an update, but I guess that was not merged yet. And since the weekend I had trouble building locally after I merged some changes from master. |
Paring down the test to only that which is necessary is the right thing to do. I cannot tell from the j2objcTest failure which line in the test is failing though. |
d9d1985
to
30da242
Compare
The j2objc problem seems to be fixed:) (google/j2objc#639) I'll do some more cleanup of my PR on the weekend. And then I think it can be merged as soon as a new j2objc build is available and the plugin is updated to use it. What should I do with my test? Should I leave it for now or should I remove it? |
With the e2e test? Please keep it around. We want to get this submitted once J2ObjC is updated and it's working well. Just ping us again when it's all working and ready to review. Thanks for your help. |
I think it would be helpful actually to submit the tests (after you clean them up) before the next j2objc release comes out, even knowing that it doesn't work in 0.9.8.2.1. When the next j2objc release comes about, we'll bump the version in our config and it should 'just' work. |
@brunobowden I meant my own unit test. I was just asking since no other library had such a test and because it is actually a test for j2objc and not for the gradle-plugin. So I wasn't sure if you wanted to keep it here. |
nearly all the testing done in this repo is actually a test of j2objc and not the gradle plugin. that's perfectly ok, as our goal is to ensure that end-to-end, these libraries work (whether the issue is in the plugin, j2objc, or the library itself). |
d469886
to
b97261b
Compare
hi. sorry it took so long. I think I am through with my cleanup. Can you do another review? |
allow_failures: | ||
# Blocked on (github issue url) | ||
# - env: TEST_DIR=com.example-library | ||
# Blocked on: https://github.com/j2objc-contrib/j2objc-common-libs-e2e-test/issues/48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the bug with the remaining issue and see if someone on there has insights on how to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually once this is submitted. Issue 48 should be closed as it now has a continuous build. You should have a separate bug explaining the build failure and then reference that on line 23 instead.
Hi @saruye, I think we're close to getting this in. |
dd517ce
to
513236f
Compare
The j2objc issue is fixed and I tested it locally by using the master branch to build this repository. So once you update the e2e tests to use a version of j2objc where the issue is fixed everything should work. I thought I don't put this in the code so that you don't have to remove this comment once you are able to update the version. I added/updated a comment in both the travis and the test file. |
I, Arne Osthues ([email protected], https://github.com/saruye), certify that a) this Contribution is my original work, and b) I have the right to submit this Contribution under the Apache License, Version 2.0 (the "License") available at http://www.apache.org/licenses/LICENSE-2.0, and c) I am submitting this Contribution under the License.
513236f
to
c9e9ef2
Compare
added jackson libraries with a failing test
test shows that jackson cannot demarshall embedded lists correctly