Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Check for nodes length before access#59420

Merged
pjlast merged 7 commits into
mainfrom
pjlast/fix-perforce-repo-commit-error
Jan 15, 2024
Merged

Check for nodes length before access#59420
pjlast merged 7 commits into
mainfrom
pjlast/fix-perforce-repo-commit-error

Conversation

@pjlast

@pjlast pjlast commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

Closes #59421
Closes #59422

At the moment, access to Perforce depots can be broken, as seen on S2: https://sourcegraph.sourcegraph.com/perforce-sgdev-org/go

image

This PR resolves the issue by checking the array length of the history nodes before indexing it. However, there might be a different underlying issue here, since I'm not sure if these nodes should ever be empty.

Test plan

Tested on my local instance

@cla-bot cla-bot Bot added the cla-signed label Jan 9, 2024
@github-actions github-actions Bot added the team/source Tickets under the purview of Source - the one Source to graph it all label Jan 9, 2024
@pjlast pjlast requested a review from a team January 9, 2024 12:45
@eseliger

eseliger commented Jan 9, 2024

Copy link
Copy Markdown
Member

However, there might be a different underlying issue here, since I'm not sure if these nodes should ever be empty.

Can you take a look at that, or file a ticket for us?

@pjlast

pjlast commented Jan 9, 2024

Copy link
Copy Markdown
Contributor Author

@eseliger yep will do!

@sourcegraph-bot

sourcegraph-bot commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@pjlast pjlast merged commit dac501d into main Jan 15, 2024
@pjlast pjlast deleted the pjlast/fix-perforce-repo-commit-error branch January 15, 2024 10:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate missing history nodes on perforce depots Error while reading 'commit' on Perforce repo

4 participants