Skip to content
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 windows detection when executing arc #270

Merged
merged 2 commits into from
Dec 4, 2018

Conversation

colin-harms
Copy link
Contributor

This is in relation to #244
If the ApplyPatchTask is being instantiated as part of a build, it will check the JVM's "os.name" property to see if it's Windows. The "startsWith Windows" logic was lifted from common-lang's SystemUtils.IS_WINDOWS

I've been trying to get a proper unit test going for this, but because Computer.currentComputer() checks to see if the current thread is a Hudson Executor, it will fail in normal unit tests (as in ApplyPatchTaskTest)

If it runs as a build in the PhabricatorBuildWrapperTest class, it will actually check the values of "os.name", but I don't want to override it as part of the test, since it sets it globally across the jvm that is running the test.

I'm open to suggestions to create a lightweight test for this. I'm not very familiar with Jenkins plugin development, but I did run into that "arc" vs "arc.bat" problem, and this change solved it.

@CLAassistant
Copy link

CLAassistant commented Aug 14, 2018

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Aug 14, 2018

Coverage Status

Coverage decreased (-0.2%) to 90.138% when pulling b371498 on colin-harms:master into d24c091 on uber:master.

@kageiit
Copy link
Contributor

kageiit commented Oct 6, 2018

@colin-harms can you please sign the CLA?

@withinfocus
Copy link

@colin-harms can you respond to the above? We'd love to get this included for our own purposes as we're experiencing the same issue with multi-platform builds.

@colin-harms
Copy link
Contributor Author

colin-harms commented Oct 26, 2018

@withinfocus I signed it a while ago, I'm not sure why it's not recognising it.

@kageiit kageiit closed this Oct 26, 2018
@kageiit kageiit reopened this Oct 26, 2018
@kageiit
Copy link
Contributor

kageiit commented Oct 26, 2018

I closed and re-opened the PR for the checks to trigger again

@withinfocus
Copy link

@colin-harms Maybe go to https://cla-assistant.io/uber/phabricator-jenkins-plugin?pullRequest=270 again and see if it sticks?

@colin-harms
Copy link
Contributor Author

I've tried chrome, chrome incognito, firefox ( which I never use ), signing out of CLA and back in. The signing page always switches from "Please sign ... " to "You have signed ... ".
Not sure what I can do to push this forward

@withinfocus
Copy link

@kageiit can this be manually resolved then?

@withinfocus
Copy link

Bump on this one. Would love for it to come through in the next plugin release. Can someone at Uber commandeer this and merge it themselves?

@kageiit
Copy link
Contributor

kageiit commented Dec 4, 2018

@briankhsieh Any idea why the CLA is not being recognized?

@kageiit
Copy link
Contributor

kageiit commented Dec 4, 2018

@withinfocus can you please resolve the conflicts?

@bhenhsi
Copy link

bhenhsi commented Dec 4, 2018

Hi can you try sign the CLA with username @ch4rms ?

@ch4rms
Copy link

ch4rms commented Dec 4, 2018

It finally worked!!
IIRC, the last time I tried the CLA form, it wasn't prompting me for my details or showing me the check box (it's been a while)

@kageiit
Copy link
Contributor

kageiit commented Dec 4, 2018

@ch4rms can you please resolve the merge conflicts?

@ch4rms
Copy link

ch4rms commented Dec 4, 2018

Thanks @kageiit I was just fixing it up when I got the email notification :)

@kageiit kageiit merged commit f54c07f into uber-archive:master Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants