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
Add new plugin: rust #579
Add new plugin: rust #579
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Would very much like to see this as I have a hard time packaging my Rust applications without it. |
|
||
properties = schema['properties'] | ||
self.assertTrue('rust-channel' in properties, | ||
'Expected "rust-verion" to be included in properties') |
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.
Looks like there are some typos here and in the self.assertTrue
statements below: verion
where I presume version
is usually meant ... ?
Although in the specific line above, it looks like it should be Expected "rust-channel"
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.
fixed with 05fb2a4
mock.call([plugin._cargo, 'install', | ||
'-j{}'.format(plugin.project.parallel_build_count), | ||
'--root', plugin.installdir]) | ||
]) |
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.
Nice work so far!
Coveralls points out that you are missing some tests here. In line 84 of that Coveralls page for example, shows that there is no test for an invalid Rust channel.
I don't have commit access and Coveralls could be totally wrong, but I thought I should point it out just in case Coveralls is right.
Hi there, thank you very much for this. I have little to no idea how rust works, but seems you have an integration test and everything so kudos! I added a few comments here and there, but this looks really good already! |
Also, no need to push your branch to see if things pass, I bet turnaround time would be faster for the smaller tests by running |
ok to test |
Can one of the admins verify this patch? |
from snapcraft.plugins import rust | ||
|
||
|
||
class MakePluginTestCase(tests.TestCase): |
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.
Maybe update the test case class name?
A rebase or update/merge branch with master and updating that trivial comment would be good. Going to say ok to test just in case something else is missing |
@sergiusens ready to test |
@mariogrip oh, this has conflicts now :-/ If it is list plugins I guess that needs to be mocked! (our problem, not yours) |
@sergiusens I fixed the conflict :) |
El sábado, 25 de junio de 2016 10h'24:28 ART, Marius Gripsgard
Tests still fail though
Enviado con Dekko desde mi dispositivo Ubuntu |
Thanks a lot for the great contribution! This is missing tests for revision and channel, and for the clean pull. Let us know here or on IRC if you need a hand with this. pura vida. |
I'm trying to use your plugin to build https://github.com/rolandshoemaker/theca Here's my yaml: https://paste.ubuntu.com/18598588/ |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
@ElOpio You need nightly rust to build that, not stable AFAIU (just add |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Can the failing tests be retried? There was some interest in this: https://twitter.com/boghison/status/753144022445723648?cn=cmVwbHk%3D&refsrc=email |
First the conflicts need to be resolved. |
Hi! I resolved the conflicts and squashed the commits in 427e3a6, but I have test fails in |
@boghison I'm not seeing any test failures in |
|
Sorry for the lack of updates on this, i have been a bit busy. Ok, so now at least travis build returns success. But autopkgtest return error:
Anyone know why? |
@mariogrip I think this when it's trying to download the rustup.sh script. @ElOpio are the autopkgtests run behind a firewall that might be blocking access to https://static.rust-lang.org/rustup.sh. FWIW, the test passes for me locally. |
Yes they are behind a firewall. Let me request the exception. |
retest this please |
LP: #1606812
This adds plugin for rust (https://www.rust-lang.org/)