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

p4: Check if p4 object is a file and return early if it isn't #19

Merged
merged 4 commits into from
Mar 21, 2022

Conversation

EricAtORS
Copy link

I tried using p4-fusion on our code base and it was crashing due to associated jobs.

@salesforce-cla
Copy link

salesforce-cla bot commented Mar 4, 2022

Thanks for the contribution! Before we can merge this, we need @thejinx0r to sign the Salesforce.com Contributor License Agreement.

@twarit-waikar
Copy link
Contributor

@EricAtORS Hello! Thank you for sending this PR.

I actually didn't know that p4 describe can return results where the depotFile key doesn't exist. Can you share some information on in what cases is the depotFile key empty?

Based on that we should be able to decide on if that kind of object is worth handling differently or if we can just ignore it.

@EricAtORS
Copy link
Author

@twarit-waikar
I haven't had a chance to login to my linux box with the soruce code and the log files, but it's related to Perforce Jobs.

Essentially, we have our Perforce server integrated with Jira and FishEye.
When JIRA creates a new issue in our of projects, it triggers FishEye to generate an associated job. Then, we can tag our changelists with a job id and JIRA/FishEye will update the issue with the associated changelists that we can see from FishEye.

In our case, varList was information about that associated job and not any file in our changelist.

@EricAtORS
Copy link
Author

Also, I'm having issues signing the cla.
I had sent an email to contactoss-cla@salesforce.com but I just noticed that the email bounced.

Copy link
Contributor

@twarit-waikar twarit-waikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for sending this PR! This was something we didn't realise that could happen.

p4-fusion/commands/describe_result.cc Outdated Show resolved Hide resolved
p4-fusion/commands/describe_result.cc Outdated Show resolved Hide resolved
@justinharringa
Copy link

Also, I'm having issues signing the cla. I had sent an email to contactoss-cla@salesforce.com but I just noticed that the email bounced.

hey there - have you clicked on the link? Could you help me understand what the issue was? For example, did you click the link? Did you get an error?

Thanks and hope all is well

@twarit-waikar
Copy link
Contributor

Hey @EricAtORS, could you check again if you can sign the CLA?

@EricAtORS
Copy link
Author

Hi @twarit-waikar
When I first signed it, I got an error. I don't quite remember what it was, but I think it was some generic error about something going wrong.
Now, when I try with both my accounts (this one and my personal one that signed the commit), I get this message:
"You already signed the CLA on 2022-03-04"

@twarit-waikar
Copy link
Contributor

@EricAtORS That should be enough then, I will re-trigger the CLA check on this PR. If you may, you can see my suggestions above, most of them are stylistic differences however

@twarit-waikar
Copy link
Contributor

twarit-waikar commented Mar 21, 2022

CLA check is completed now. Would like to know if you can commit the suggested changes or if I have the permission to build on top of your changes so I can make those minor stylistic changes.

Thanks!

@EricAtORS
Copy link
Author

@twarit-waikar
Thanks for updating the checks.

You are more than welcome to build on top of my changes to make the stylistic ones. I just haven't had access to my linux bot to do it. If you do it, it would be very appreciated from my part as I'm not sure when I will get access to my linux box.

@twarit-waikar twarit-waikar changed the title check if p4 object is a file p4: Check if p4 object is a file and return early if it isn't Mar 21, 2022
@twarit-waikar
Copy link
Contributor

Thanks for sending the PR!

@twarit-waikar twarit-waikar merged commit 7442dff into salesforce:master Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants