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

fix: disable life support for nearlib test #7667

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Sep 22, 2022

What this test is intended to do is to spawn a local neard node and to run near-api-js tests against that.

The purpose is to detect unintentional changes to near public API.

We have disabled actually running the test a while ago, and today the build broke b/c api-js moved from yarn to pnpm.

I think at this it's safe to kill this infra completely, as we weren't running it for a while.

It would of course be nice to have some in-repo tests covering public JSON API, but I think we are currently server well-enough by betanet and testnet anyway.

Testing public APIs via running tests of downstream projects upstream is clearly a wrong way to do that!

@matklad matklad requested a review from a team as a code owner September 22, 2022 09:51
@matklad matklad requested a review from nikurt September 22, 2022 09:51
What this test is intended to do is to spawn a local neard node and to
run near-api-js tests against that.

The purpose is to detect unintentional changes to near public API.

We have disabled actually running the test a while ago, and today the
build broke b/c api-js moved from yarn to pnpm.

I think at this it's safe to kill this infra completely, as we weren't
running it for a while.

It would of course be nice to have some in-repo tests covering public
JSON API, but I think we are currently server well-enough by betanet and
testnet anyway.

Testing public APIs via running tests of downstream projects upstream is
clearly a wrong way to do that!
@matklad
Copy link
Contributor Author

matklad commented Sep 22, 2022

@morgsmccauley (random person from near-api-js), how is near-api-js is tested? Specifically, when running the tests in CI, do you also run the node, or is it fully mocked?

@near-bulldozer near-bulldozer bot merged commit dc81782 into near:master Sep 22, 2022
@matklad matklad deleted the m/upbreak-tests branch September 22, 2022 10:09
@morgsmccauley
Copy link
Contributor

@matklad it uses https://rpc.ci-testnet.near.org directly. I wasn't aware of these tests, sorry for the breaking change.

@matklad
Copy link
Contributor Author

matklad commented Sep 23, 2022

Thanks!

So this means that, if we do break our APIs, we'll notice this at least when we hit testnet. This makes me confident that we are somewhat covered here.

nikurt pushed a commit that referenced this pull request Sep 26, 2022
What this test is intended to do is to spawn a local neard node and to run near-api-js tests against that.

The purpose is to detect unintentional changes to near public API.

We have disabled actually running the test a while ago, and today the build broke b/c api-js moved from yarn to pnpm.

I think at this it's safe to kill this infra completely, as we weren't running it for a while.

It would of course be nice to have some in-repo tests covering public JSON API, but I think we are currently server well-enough by betanet and testnet anyway.

Testing public APIs via running tests of downstream projects upstream is clearly a wrong way to do that!
# subprocess.check_output(['docker', 'pull', 'v2tec/watchtower'])
# except subprocess.CalledProcessError as exc:
# print("Failed to fetch docker containers: %s" % exc)
# exit(1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ouch, this definitely wasn't meant to be commited, sorry.

matklad added a commit to matklad/nearcore that referenced this pull request Sep 29, 2022
I didn't mean to comment the code in setup_and_run, and I did mean to
remove wait_on_server, as that was only used by the test removed in near#7667
@matklad matklad mentioned this pull request Sep 29, 2022
near-bulldozer bot pushed a commit that referenced this pull request Sep 30, 2022
I didn't mean to comment the code in setup_and_run, and I did mean to
remove wait_on_server, as that was only used by the test removed in
#7667
nikurt pushed a commit that referenced this pull request Nov 9, 2022
What this test is intended to do is to spawn a local neard node and to run near-api-js tests against that.

The purpose is to detect unintentional changes to near public API.

We have disabled actually running the test a while ago, and today the build broke b/c api-js moved from yarn to pnpm.

I think at this it's safe to kill this infra completely, as we weren't running it for a while.

It would of course be nice to have some in-repo tests covering public JSON API, but I think we are currently server well-enough by betanet and testnet anyway.

Testing public APIs via running tests of downstream projects upstream is clearly a wrong way to do that!
nikurt pushed a commit that referenced this pull request Nov 9, 2022
I didn't mean to comment the code in setup_and_run, and I did mean to
remove wait_on_server, as that was only used by the test removed in
#7667
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.

3 participants