Skip to content

Conversation

amnn
Copy link
Contributor

@amnn amnn commented Sep 13, 2024

Description

Set-up testing for staging variant of sui-graphql-rpc:

  • Split E2E tests into stable and staging variants (each in their own sub-directories -- existing tests are all stable). Only run the stable tests by default, and additionally run the staging tests if the staging feature is enabled.
  • Generate a separate staging schema and snapshot test.
  • Add a CI step to run GraphQL tests with the staging flag enabled.

Test plan

sui$ cargo nextest run --profile ci --features staging  \
  -E 'package(sui-graphql-rpc)'                         \
  -E 'package(sui-graphql-e2e-tests)'

And also check CI.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL: Introduce staging.graphql. This schema includes changes that are being developed and tested but have not been productionized yet.
  • CLI:
  • Rust SDK:
  • REST API:

@amnn amnn requested review from bmwill, gegaowp and lxfind September 13, 2024 22:26
@amnn amnn self-assigned this Sep 13, 2024
Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 11:53am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 11:53am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 11:53am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 11:53am

@amnn amnn changed the title ci: testing for sui-graphql-rpc staging ci(graphql): tests for staging variant Sep 13, 2024
## Description

Set-up testing for `staging` variant of `sui-graphql-rpc`:

- Split E2E tests into `stable` and `staging` variants (each in their
  own sub-directories -- existing tests are all `stable`). Only run the
  stable tests by default, and additionally run the staging tests if the
  `staging` feature is enabled.
- Generate a separate `staging` schema and snapshot test.
- Add a CI step to run GraphQL tests with the staging flag enabled.

## Test plan

```
sui$ cargo nextest run --profile ci --features staging  \
  -E 'package(sui-graphql-rpc)'                         \
  -E 'package(sui-graphql-e2e-tests)'
```

And also check CI.
@amnn amnn force-pushed the amnn/tx-affected-ci branch from af40b5e to 1940c09 Compare September 17, 2024 11:49
@amnn amnn merged commit 6395d53 into main Sep 17, 2024
47 of 48 checks passed
@amnn amnn deleted the amnn/tx-affected-ci branch September 17, 2024 17:19
@lxfind
Copy link
Contributor

lxfind commented Sep 17, 2024

Is there going to be a staging directory?

amnn added a commit that referenced this pull request Sep 17, 2024
## Description

Some of these tests are on older versions because they landed around the
time of the last bump. Bringing everything in line with protocol 51.

## Test plan

```
$ cargo nextest run -p sui-graphql-e2e-tests
```

## Stack

- #19371 

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
@amnn
Copy link
Contributor Author

amnn commented Sep 17, 2024

Yes there is -- I will be adding it in #19365

amnn added a commit that referenced this pull request Sep 18, 2024
## Description

Add `TransactionBlockFilter.affectedAddress` as a way to filter
transactions by their relationship to an address without worrying about
what kind of relationship that is.

## Test plan

New E2E 

## Stack

- #19363
- #19371
- #19402 
- #19403

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
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