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

missing ASC file for 1.20.22, 1.20.20, 1.20.21 #9050

Open
airtonix opened this issue Apr 10, 2024 · 1 comment
Open

missing ASC file for 1.20.22, 1.20.20, 1.20.21 #9050

airtonix opened this issue Apr 10, 2024 · 1 comment

Comments

@airtonix
Copy link

airtonix commented Apr 10, 2024

x asdf install yarn 1.22.20
--2024-04-11 08:27:15--  https://classic.yarnpkg.com/downloads/1.22.20/yarn-v1.22.20.tar.gz
Resolving classic.yarnpkg.com (classic.yarnpkg.com)... 54.253.236.10, 3.24.66.78, 2406:da1c:6aa:c001::c8, ...
Connecting to classic.yarnpkg.com (classic.yarnpkg.com)|54.253.236.10|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/yarnpkg/yarn/releases/download/v1.22.20/yarn-v1.22.20.tar.gz [following]
--2024-04-11 08:27:16--  https://github.com/yarnpkg/yarn/releases/download/v1.22.20/yarn-v1.22.20.tar.gz
Resolving github.com (github.com)... 20.248.137.48
Connecting to github.com (github.com)|20.248.137.48|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/49970642/62ba5086-2833-407e-9ace-ed2f02385da6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240410T225716Z&X-Amz-Expires=300&X-Amz-Signature=44ae0c66c1f37564bc9cbadaf4850c4d2c00eed187c88dea1145bebe5a6d84b6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=49970642&response-content-disposition=attachment%3B%20filename%3Dyarn-v1.22.20.tar.gz&response-content-type=application%2Foctet-stream [following]
--2024-04-11 08:27:16--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/49970642/62ba5086-2833-407e-9ace-ed2f02385da6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240410T225716Z&X-Amz-Expires=300&X-Amz-Signature=44ae0c66c1f37564bc9cbadaf4850c4d2c00eed187c88dea1145bebe5a6d84b6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=49970642&response-content-disposition=attachment%3B%20filename%3Dyarn-v1.22.20.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1242998 (1.2M) [application/octet-stream]
Saving to: ‘yarn-v1.22.20.tar.gz’

yarn-v1.22.20.tar.gz                                           100%[====================================================================================================================================================>]   1.18M  3.80MB/s    in 0.3s    

2024-04-11 08:27:17 (3.80 MB/s) - ‘yarn-v1.22.20.tar.gz’ saved [1242998/1242998]

--2024-04-11 08:27:17--  https://classic.yarnpkg.com/downloads/1.22.20/yarn-v1.22.20.tar.gz.asc
Resolving classic.yarnpkg.com (classic.yarnpkg.com)... 3.24.66.78, 54.253.236.10, 2406:da1c:6aa:c002::c8, ...
Connecting to classic.yarnpkg.com (classic.yarnpkg.com)|3.24.66.78|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/yarnpkg/yarn/releases/download/v1.22.20/yarn-v1.22.20.tar.gz.asc [following]
--2024-04-11 08:27:18--  https://github.com/yarnpkg/yarn/releases/download/v1.22.20/yarn-v1.22.20.tar.gz.asc
Resolving github.com (github.com)... 20.248.137.48
Connecting to github.com (github.com)|20.248.137.48|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-04-11 08:27:18 ERROR 404: Not Found.

github com_yarnpkg_yarn_releases

@airtonix airtonix changed the title missing ASC file for 1.20.22, 1.20.21, 1.20.19 missing ASC file for 1.20.22, 1.20.20, 1.20.21 Apr 10, 2024
@rhuankarlus
Copy link

Same here.

leotm added a commit to MetaMask/metamask-mobile that referenced this issue Apr 18, 2024
leotm added a commit to MetaMask/metamask-mobile that referenced this issue Apr 30, 2024
## **Description**

Prevent engineers using different Yarn versions with different features
causing our CI dedupe step to break
- [x] Bump package.json Yarn engine from ^1.22.0 to 1.22.22 
- [x] Bump BitRise Yarn version from 1.22.19 to 1.22.22
- [x] Lock project Yarn version to 1.22.22
- [x] Add Yarn config file comment RE @lavamoat/allow-scripts setup
- [x] Run `yarn deduplicate` and commit
- [x] Revert Bump BitRise Yarn version from 1.22.19 to 1.22.22
([thread](#9143 (review)))
- [x] Bump BitRise Yarn version from 1.22.19 to 1.22.22
  - [x] Fix yarnpkg/yarn#9050
  - [x] Switch to <s>NPM or</s> Corepack

Nb: our metamask-extension setup
-
https://github.com/MetaMask/metamask-extension/blob/develop/package.json#L616
-
https://github.com/MetaMask/metamask-extension/blob/develop/package.json#L681
-
https://github.com/MetaMask/metamask-extension/blob/develop/.yarn/releases/yarn-4.0.2.cjs
-
https://github.com/MetaMask/metamask-extension/blob/develop/.yarnrc.yml#L142

https://classic.yarnpkg.com/lang/en/docs/package-json/#toc-engines
> The engines specify versions of clients that must be used with your
package. This checks against `process.versions` as well as the current
version of yarn.

https://classic.yarnpkg.com/lang/en/docs/yarnrc/#toc-yarn-path
> Instructs yarn to defer to another Yarn binary for execution. Useful
if you want to bundle Yarn into your repository and have everyone use
the same version for consistency. This was introduced in Yarn 1.0, so
all developers must have Yarn >= 1.0 installed.

https://yarnpkg.com/getting-started/qa

> `.yarn/plugins` and `.yarn/releases` contain the Yarn releases used in
the current repository (as defined by [yarn
](https://yarnpkg.com/cli/set/version)[set
version](https://yarnpkg.com/cli/set/version)). You will want to keep
them versioned (this prevents potential issues if, say, two engineers
use different Yarn versions with different features).

https://yarnpkg.com/cli/set/version

> Lock the Yarn version used by the project.

https://nodejs.org/dist/latest-v15.x/docs/api/all.html (introduced in
Node v16 only)

https://nodejs.org/dist/latest-v16.x/docs/api/all.html#all_packages_packagemanager
from testing our repo (on Node v18), this appears to have no effect
enforcing the version

from testing our repo, we could revert
c7d67e6
to keep our structure simpler
since the package.json engine field is enough to enforce the version
but these 2 files are generated by running `yarn set version 1.22.22`

Yarn v1.22 update
- PR: yarnpkg/yarn#9023
- Commit:
yarnpkg/yarn@88d5e44
- Picked into branch: https://github.com/yarnpkg/yarn/tree/1.22-stable

## **Related issues**

Fixes: CI dedupe step consistently failing

## **Manual testing steps**

- ensure `yarn --version` is below 1.22.22
- or e.g. `yarn set version 1.22.21`
- run `yarn`
- Yarn errors correctly ^1.22.22+ is expected

Nb: after doing this too many times, you can use a VPN as a workaround

<img width="1806" alt="Screenshot 2024-04-04 at 6 40 35 PM"
src="https://github.com/MetaMask/metamask-mobile/assets/1881059/41cf015c-2aed-4c63-8f24-041a5cf98ef3">

## **Screenshots/Recordings**

<img width="987" alt="Screenshot 2024-04-04 at 8 32 00 PM"
src="https://github.com/MetaMask/metamask-mobile/assets/1881059/901ca091-02db-4a69-8137-0ec1b6b3c07d">

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
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

No branches or pull requests

2 participants