Skip to content

test(explorer): disable contract renewedFrom, renewedTo, and adjust constant #1026

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

Conversation

telestrial
Copy link
Contributor

@telestrial telestrial commented Apr 2, 2025

This disables the tests that will fail as a result of disabling the renewedFrom and renewedTo buttons until such time as those are available. That said, the next PR up the stack will fail. The one after that I'm aiming to succeed with this PR. The final one, adjusting the testing suite to fully utilize clusterd, obviously changes all this. I wanted to see the pre-cluster testing succeed to verify assumptions, if that makes sense.

Copy link

vercel bot commented Apr 2, 2025

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

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 7:11pm
explorer-zen ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 7:11pm
hostd ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 7:11pm
renterd ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 7:11pm
website ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 7:11pm

Copy link

changeset-bot bot commented Apr 2, 2025

⚠️ No Changeset found

Latest commit: 943069a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@telestrial telestrial marked this pull request as ready for review April 2, 2025 02:46
@Copilot Copilot AI review requested due to automatic review settings April 2, 2025 02:46
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR disables tests for renewed contract navigation and updates a constant value.

  • Comments out test cases for renewedFrom and renewedTo contract navigation.
  • Adjusts the constant for missed proof outputs in the contract fixture.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/explorer-e2e/src/specs/contract.spec.ts Disables tests for renewed contract navigation by commenting out code.
apps/explorer-e2e/src/fixtures/constants.ts Updates the missedProofTitle constant to reflect a changed output value.
Comments suppressed due to low confidence (2)

apps/explorer-e2e/src/specs/contract.spec.ts:40

  • [nitpick] Consider using test.skip to disable tests instead of commenting out the test block. This will maintain discoverability and clarity in the test suite.
// test('contract can navigate to renewed from contract', async ({ page }) => {

apps/explorer-e2e/src/fixtures/constants.ts:69

  • Verify that the update to 'missedProofTitle' from '(2)' to '(3)' is intentional and that associated test expectations are updated accordingly.
missedProofTitle: 'Missed proof outputs (3)',

Copy link
Member

@peterjan peterjan left a comment

Choose a reason for hiding this comment

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

I'm probably just missing something with all the commenting things out?

Copy link
Member

@alexfreska alexfreska left a comment

Choose a reason for hiding this comment

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

If those renewed ID fields are being added in the next days or week why don't we leave these tests failing (which is accurate) and once the fields are added we can naturally fix them, meanwhile we can continue working up the stack. If it will be a while then I get the value in disabling and being able to merge the stack.

Copy link
Contributor Author

@peterjan: We're extending explored to offer renewedFrom and renewedTo on v1 and v2 contracts. Right now, this takes four network requests on v1 and it may not be possible, sticking to core types and current API offerings, for a v2 contract. This should all eventually be uncommented, including the stuff in the second PR above.

That said, @alexfreska, I don't mind closing! I don't know when this feature will be live in main explored and ready to be developed against, so that's where I'm coming from with it. It sounds like, from discussion, the PR may hit Friday. It then needs review. It could be available Friday. Maybe Monday. Could be next Friday. It's hard to predict.

@telestrial telestrial changed the base branch from main to graphite-base/1026 April 3, 2025 23:32
@telestrial telestrial force-pushed the 03-28-test_explorer_disable_contract_renewedfrom_renewedto_and_adjust_constant branch from 0f78485 to 87ae814 Compare April 3, 2025 23:32
@telestrial telestrial changed the base branch from graphite-base/1026 to 04-02-refactor_request_narrow_to_function_response_type April 3, 2025 23:33
@telestrial telestrial force-pushed the 04-02-refactor_request_narrow_to_function_response_type branch 2 times, most recently from 9f11e4a to 2261502 Compare April 4, 2025 01:58
@telestrial telestrial force-pushed the 03-28-test_explorer_disable_contract_renewedfrom_renewedto_and_adjust_constant branch from 87ae814 to a31ee75 Compare April 4, 2025 01:58
Copy link
Member

Go ahead and merge if its easier, and we can uncomment whenever that feature lands.

@telestrial telestrial force-pushed the 04-02-refactor_request_narrow_to_function_response_type branch from 2261502 to a937d91 Compare April 4, 2025 18:30
@telestrial telestrial force-pushed the 03-28-test_explorer_disable_contract_renewedfrom_renewedto_and_adjust_constant branch from a31ee75 to f9b6358 Compare April 4, 2025 18:30
Copy link
Contributor Author

telestrial commented Apr 4, 2025

Merge activity

  • Apr 4, 3:02 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Apr 4, 3:11 PM EDT: Graphite rebased this pull request as part of a merge.
  • Apr 4, 3:15 PM EDT: A user merged this pull request with Graphite.

@telestrial telestrial changed the base branch from 04-02-refactor_request_narrow_to_function_response_type to graphite-base/1026 April 4, 2025 19:04
@telestrial telestrial changed the base branch from graphite-base/1026 to main April 4, 2025 19:09
@telestrial telestrial force-pushed the 03-28-test_explorer_disable_contract_renewedfrom_renewedto_and_adjust_constant branch from f9b6358 to 943069a Compare April 4, 2025 19:10
@telestrial telestrial merged commit 8d9ab4d into main Apr 4, 2025
36 of 40 checks passed
@telestrial telestrial deleted the 03-28-test_explorer_disable_contract_renewedfrom_renewedto_and_adjust_constant branch April 4, 2025 19:15
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants