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

Rockskip: test getHops function#62549

Merged
jtibshirani merged 1 commit into
mainfrom
jtibs/rockskip
May 8, 2024
Merged

Rockskip: test getHops function#62549
jtibshirani merged 1 commit into
mainfrom
jtibs/rockskip

Conversation

@jtibshirani

Copy link
Copy Markdown
Contributor

Another tiny warm-up for Rockskip tests. This commit adds a test for getHops
and simplifies the method.

Test plan

Added new test

@cla-bot cla-bot Bot added the cla-signed label May 8, 2024
@github-actions github-actions Bot added team/product-platform team/search-platform Issues owned by the search platform team labels May 8, 2024
Comment thread internal/rockskip/server.go Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Now it's clear the semantics are a bit weird:

  • In the normal case, we always append the NULL commit to the end
  • If a commit is not present, we stop early and do not append NULL, which can mess up downstream logic

Instead, I think we should error out if a commit isn't present. Anyways, I'm not fixing this now as I want this change to be a straight test/ refactor.

@jtibshirani jtibshirani requested a review from a team May 8, 2024 15:26
@jtibshirani jtibshirani merged commit c6e10fb into main May 8, 2024
@jtibshirani jtibshirani deleted the jtibs/rockskip branch May 8, 2024 17:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/search-platform Issues owned by the search platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants