Skip to content

Conversation

dj8yfo
Copy link
Collaborator

@dj8yfo dj8yfo commented Mar 27, 2025

No description provided.

@dj8yfo dj8yfo changed the title feat: extract near-verify-rs dependey feat: extract near-verify-rs dependency Mar 27, 2025
@dj8yfo dj8yfo marked this pull request as ready for review March 28, 2025 17:10
@dj8yfo dj8yfo marked this pull request as draft March 31, 2025 10:54
dj8yf0μl added 24 commits March 31, 2025 13:56
…r-build/src/near/docker_build/subprocess_step.rs
…:CONTRACT_PATH]

in `container_paths::Paths`
@dj8yfo dj8yfo marked this pull request as ready for review March 31, 2025 12:10
@dj8yfo
Copy link
Collaborator Author

dj8yfo commented Apr 1, 2025

@race-of-sloths include

@race-of-sloths
Copy link

race-of-sloths commented Apr 1, 2025

@dj8yfo Thank you for your contribution! Your pull request is now a part of the Race of Sloths!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: executed
Reviewer Score
@frol 13

Your contribution is much appreciated with a final score of 13!
You have received 186 (130 base + 25 weekly bonus + 20% lifetime bonus) Sloth points for this contribution

@frol received 25 Sloth Points for reviewing and scoring this pull request.

Another weekly streak completed, well done @dj8yfo! To keep your weekly streak and get another bonus make pull request next week! Looking forward to see you in race-of-sloths

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths and receive a reward
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

@dj8yfo dj8yfo marked this pull request as draft April 1, 2025 20:46
@@ -55,6 +55,14 @@ pub fn run(args: Opts) -> eyre::Result<CompilationArtifact> {
)
})?;

// addition of this check wasn't a change in logic, as previously output path was
// assumed without `--out-dir` too, so docker-build was just failing if the arg was supplied:
Copy link
Collaborator Author

@dj8yfo dj8yfo Apr 2, 2025

Choose a reason for hiding this comment

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

log output before when attempting to use --out-dir:

[package.metadata.near.reproducible_build]
//...
container_build_command = [
    "cargo",
    "near",
    "build",
    "non-reproducible-wasm",
    "--locked",
    "--out-dir",
    "./custom_dir"
]
✓ Running docker command step (finished)
• Copying artifact from temporary build site...
 artifact search location in temporary build site: /tmp/.tmplMHMxh/target/near
• failed

Here is the console command if you ever need to re-run it again:
cargo near build reproducible-wasm

Error:
   0: Temporary build site result wasm file not found: `"/tmp/.tmplMHMxh/target/near/simple_package.wasm"`.

Location:
   cargo-near-build/src/types/near/docker_build/cloned_repo.rs:134

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand why we must forbid --out-dir. Just let it fail to find the wasm file at the end of the execution and force the user to provide the path explicitly in the [package.metadata.near.reproducible_build] section.

Are you trying to minimize the number of configurable options in the [package.metadata.near.reproducible_build] section? If that is the case, I get it, and it is fine to move forward like this. However, it might be more flexible to have a way to allow users to specify where to find the wasm file.

@dj8yfo dj8yfo marked this pull request as ready for review April 2, 2025 20:32
Copy link
Contributor

@frol frol left a comment

Choose a reason for hiding this comment

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

@dj8yfo Tremendous job!

@race-of-sloths score 55

@@ -55,6 +55,14 @@ pub fn run(args: Opts) -> eyre::Result<CompilationArtifact> {
)
})?;

// addition of this check wasn't a change in logic, as previously output path was
// assumed without `--out-dir` too, so docker-build was just failing if the arg was supplied:
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand why we must forbid --out-dir. Just let it fail to find the wasm file at the end of the execution and force the user to provide the path explicitly in the [package.metadata.near.reproducible_build] section.

Are you trying to minimize the number of configurable options in the [package.metadata.near.reproducible_build] section? If that is the case, I get it, and it is fine to move forward like this. However, it might be more flexible to have a way to allow users to specify where to find the wasm file.

@race-of-sloths
Copy link

🏆 Score recorded!

It looks like @frol provided a score of 55, but based on our Fibonacci scoring rules, we've adjusted it to 13.

Tip

We accept only the following Fibonacci numbers [0, 1, 2, 3, 5, 8, 13] for scoring

@dj8yfo dj8yfo enabled auto-merge (squash) April 8, 2025 05:34
@dj8yfo dj8yfo merged commit 6596bbf into near:main Apr 8, 2025
18 checks passed
@frol frol mentioned this pull request Apr 7, 2025
dj8yfo pushed a commit that referenced this pull request Apr 8, 2025
## 🤖 New release

* `cargo-near-build`: 0.4.5 -> 0.4.6 (⚠ API breaking changes under
`test-code` feature)
* `cargo-near`: 0.13.5 -> 0.13.6 (✓ API compatible changes)

### ⚠ `cargo-near-build` breaking changes

```text
--- failure inherent_method_missing: pub method removed or renamed ---

Description:
A publicly-visible method or associated fn is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.40.0/src/lints/inherent_method_missing.ron

Failed in:
  CrateMetadata::resolve_output_dir, previously in file /tmp/.tmpC134jK/cargo-near-build/src/types/cargo/metadata.rs:62
```

<details><summary><i><b>Changelog</b></i></summary><p>

## `cargo-near-build`

<blockquote>

##
[0.4.6](cargo-near-build-v0.4.5...cargo-near-build-v0.4.6)
- 2025-04-08

### Added

- extract `near-verify-rs` dependency
([#320](#320))
</blockquote>

## `cargo-near`

<blockquote>

##
[0.13.6](cargo-near-v0.13.5...cargo-near-v0.13.6)
- 2025-04-08

### Added

- extract `near-verify-rs` dependency
([#320](#320))

### Other

- update `cargo near new` template `image` and `image_digest`
([#318](#318))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: dj8yf0μl <noreply@nowhere.org>
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