Commit Graph

150 Commits

Author SHA1 Message Date
Pranav Yadav
94a2e33cb8 CI - Bump Node JS to v18 in CI Pipeline (#4898)
Summary:
This diff bumps Node JS to `v18` in CI Pipeline.
Related PR:
1. https://github.com/facebook/flipper/issues/4897

## Changelog

[General] [Changed] - Bump Node JS to `v18` in CI Pipeline

Pull Request resolved: https://github.com/facebook/flipper/pull/4898

Test Plan: - Should pass tests & builds successfully

Reviewed By: lblasa

Differential Revision: D47128828

Pulled By: passy

fbshipit-source-id: b8d829b273898bf5e297560fbbdbafba80285b33
2023-06-30 03:25:05 -07:00
Pranav Yadav
14068f1ea8 nodejs - Bump actions/- setup-node@v3.6.0, checkout@v3.5.3 & upload-artifact@v3.1.2 (#4865)
Summary:
This diff bumps `actions/setup-node@v3.6.0`, `actions/checkout@v3.5.3` & `actions/upload-artifact@v3.1.2`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0
- `actions/upload-artifact@v3.1.2` changelog: https://github.com/actions/upload-artifact/releases/tag/v3.1.2

## Changelog:

[GENERAL] [SECURITY] - [Actions] `nodejs` - Bump `actions/`- `setup-node@v3.6.0`, `checkout@v3.5.3` & `upload-artifact@v3.1.2`

Pull Request resolved: https://github.com/facebook/flipper/pull/4865

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47128838

Pulled By: passy

fbshipit-source-id: 2aba3f1b6d5f4819cbf13857cdb24b23bfc5cd84
2023-06-29 11:19:01 -07:00
Pranav Yadav
5584cf817c docs - Bump actions/checkout@v3.5.3 & JamesIves/github-pages-deploy-action@v4.4.2 (#4873)
Summary:
This diff bumps `actions/checkout@v3.5.3` & `JamesIves/github-pages-deploy-action@v4.4.2`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `JamesIves/github-pages-deploy-action@v4.4.2` changelog: https://github.com/JamesIves/github-pages-deploy-action/releases/tag/v4.4.2

## Changelog:

[GENERAL] [SECURITY] - [Actions] `docs` - Bump `actions/checkout@v3.5.3` & `JamesIves/github-pages-deploy-action@v4.4.2`

Pull Request resolved: https://github.com/facebook/flipper/pull/4873

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47089308

Pulled By: passy

fbshipit-source-id: 5f8342e34a4fdde832e82d530c53e0cbe02c99a1
2023-06-29 04:03:27 -07:00
Pranav Yadav
65e515bdaa js - Bump actions/- setup-node@v3.6.0, checkout@v3.5.3 & nick-fields/retry@v2.8.3 (#4872)
Summary:
This diff bumps `actions/checkout@v3.5.3`, `actions/setup-node@v3.6.0`, and `nick-fields/retry@v2.8.3`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0
- `nick-fields/retry@v2.8.3` changelog: https://github.com/nick-fields/retry/releases/tag/v2.8.3

## Changelog:

[GENERAL] [SECURITY] - [Actions] `js` - Bump `actions/`- `checkout@v3.5.3`, `setup-node@v3.6.0`, & `nick-fields/retry@v2.8.3`

Pull Request resolved: https://github.com/facebook/flipper/pull/4872

Test Plan: - Workflow should run and work as usual.

Reviewed By: ivanmisuno

Differential Revision: D47090375

Pulled By: passy

fbshipit-source-id: 8e3852620dc9439e9d26e26daa87c7cb2cc258d0
2023-06-28 11:12:53 -07:00
Pranav Yadav
985f7d1354 android-sample - Bump actions/- checkout@v3.5.3, setup-java@v3.11.0, cache@v3.3.1 & upload-artifact@v3.1.2 (#4874)
Summary:
This diff bumps `actions/checkout@v3.5.3`, `actions/setup-java@v3.11.0`, `actions/cache@v3.3.1` & `actions/upload-artifact@v3.1.2`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-java@v3.11.0` changelog: https://github.com/actions/setup-java/releases/tag/v3.11.0
- `actions/cache@v3.3.1` changelog: https://github.com/actions/cache/releases/tag/v3.3.1
- `actions/upload-artifact@v3.1.2` changelog: https://github.com/actions/upload-artifact/releases/tag/v3.1.2

## Changelog:

[GENERAL] [SECURITY] - [Actions] `android-sample` - Bump `actions/`- `checkout@v3.5.3`, `setup-java@v3.11.0`, `cache@v3.3.1` & `upload-artifact@v3.1.2`

Pull Request resolved: https://github.com/facebook/flipper/pull/4874

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47089304

Pulled By: passy

fbshipit-source-id: 5c99ab1babed4357daadba97ecc5fd702386c5e4
2023-06-28 11:07:44 -07:00
Pranav Yadav
a6ab663c32 iOS-pod-lint - Bump actions/checkout@v3.5.3 & nick-fields/retry@v2.8.3 (#4877)
Summary:
This diff bumps `actions/checkout@v3.5.3`, and `nick-fields/retry@v2.8.3`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `nick-fields/retry@v2.8.3` changelog: https://github.com/nick-fields/retry/releases/tag/v2.8.3

## Changelog:

[GENERAL] [SECURITY] - [Actions] `iOS-pod-lint` - Bump `actions/checkout@v3.5.3` & `nick-fields/retry@v2.8.3`

Pull Request resolved: https://github.com/facebook/flipper/pull/4877

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47056989

Pulled By: passy

fbshipit-source-id: cc80115ab0757f028f018c185f724915488e6ea3
2023-06-28 03:07:46 -07:00
Pranav Yadav
44925c687e issues - Bump hramos/needs-attention to v2.0.0 & actions/checkout to v3 (#4862)
Summary:
This diff bumps `hramos/needs-attention` to `v2.0.0` & `actions/checkout` to `v3`
- `hramos/needs-attention@v2.0.0` is a `latest` **BREAKING** release with a number of improvements made by Pranav-yadav i.e. ***me*** 😎

### Major Improvements:
`hramos/needs-attention@v2.0.0`:
- Bump `Node.js` to `v16`
- Bump `actions/checkout` to `v3`
- Add **TypeScript**
- Generate and publish **fully compiled** dist (with deps) instead of `node_modules`

### Ref.:
- Full Changelog for `v2.0.0`: https://github.com/hramos/needs-attention/releases/tag/v2.0.0
- Marketplace `v2.0.0`: https://github.com/marketplace/actions/needs-attention?version=v2.0.0

## Changelog:

[GENERAL] [SECURITY] - [Actions] `issues` - Bump `hramos/needs-attention` to `v2.0.0` & `actions/checkout` to `v3`

Pull Request resolved: https://github.com/facebook/flipper/pull/4862

Test Plan: - Workflow should add and remove respective labels as usual.

Reviewed By: lblasa

Differential Revision: D47017048

Pulled By: passy

fbshipit-source-id: ebc70e2c64e1d782977da96863d9b9969a453551
2023-06-27 08:58:14 -07:00
Pranav Yadav
d3861c53a4 packer - Switch to dtolnay/rust-toolchain@stable & bump actions/checkout@v3.5.3 (#4878)
Summary:
This diff switches to `dtolnay/rust-toolchain@stable` since `actions-rs/toolchain` is **NOT maintained** and bumps `actions/checkout@v3.5.3`

> **Note**:
> `uses: dtolnay/rust-toolchain@stable`
> The selection of Rust toolchain is made based on the particular `rev` of this Action being requested. For example `dtolnay/rust-toolchain@nightly` pulls in the `nightly` Rust toolchain, while `dtolnay/rust-toolchain@1.42.0` pulls in `1.42.0`.

### Ref.:
- `actions-rs/toolchain` is **NOT Maintained**, issue:
https://github.com/actions-rs/toolchain/issues/216
- `dtolnay/rust-toolchain@stable` usage note: https://github.com/dtolnay/rust-toolchain#example-workflow
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3

## Changelog:

[GENERAL] [SECURITY] - [Actions] `packer` - Switch to `dtolnay/rust-toolchain@stable` & bump `actions/checkout@v3.5.3`

Pull Request resolved: https://github.com/facebook/flipper/pull/4878

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47056977

Pulled By: passy

fbshipit-source-id: 68023fcce355831314af2f31d514ed95efb7788c
2023-06-27 08:56:55 -07:00
Pascal Hartig
5be3b4b0f0 Upgrade GitHub workflow java version (#4750)
Summary:
[android] Upgrade GitHub workflow java version
Version 8 of AGP requires Java 17+. Let's upgrade it here.

There are some flags that are no longer supported, hence the update to gradle.properties.

Pull Request resolved: https://github.com/facebook/flipper/pull/4750

Test Plan:
- CI

 ---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/flipper/pull/4750).
* https://github.com/facebook/flipper/issues/4755
* https://github.com/facebook/flipper/issues/4754
* https://github.com/facebook/flipper/issues/4753
* https://github.com/facebook/flipper/issues/4752
* https://github.com/facebook/flipper/issues/4751
* __->__ https://github.com/facebook/flipper/issues/4750
* https://github.com/facebook/flipper/issues/4749

Reviewed By: antonk52

Differential Revision: D46067505

Pulled By: passy

fbshipit-source-id: b673535ac9bd08a35bdb61b9a9ec0a38c957ceef
2023-05-22 06:19:41 -07:00
dependabot[bot]
0402cf8966 Bump metro-config from 0.75.0 to 0.76.0 in /react-native/ReactNativeFlipperExample (#4582)
Summary:
Bumps [metro-config](https://github.com/facebook/metro) from 0.75.0 to 0.76.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-config's releases</a>.</em></p>
<blockquote>
<h2>v0.76.0</h2>
<ul>
<li><strong>[Breaking]</strong>: Increase minimum Node version from 14 to 16. (<a href="e5950aeaf0</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Breaking]</strong>: Remove <code>isAssetFile</code> from custom resolver context, add <code>assetExts</code>. (<a href="c6548f7ccc</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Feature]</strong>: Support <a href="https://facebook.github.io/metro/docs/module-api#requireresolveweak"><code>require.resolveWeak()</code></a>. (<a href="354d6e487a</a> by <a href="https://github.com/motiz88"><code>@​motiz88</code></a>)</li>
<li><strong>[Fix]</strong>: Don't over-invalidate on symlink changes if resolution through symlinks is not enabled. (<a href="2303c10b6b</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: Returning <code>false</code> from <a href="https://facebook.github.io/metro/docs/resolution#redirectmodulepath-string--string--false"><code>context.redirectModulePath</code></a> will resolve to empty module in all cases. (<a href="0f1846a64d</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Fix]</strong>: Respect extensionless entries in <code>browser</code>, <code>react-native</code> etc when resolving subpath package specifiers. (<a href="7e922270de</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Fix]</strong>: Remove undocumented Meta-only <code>__jsResource</code> and <code>__conditionallySplitJsResource</code> functions from module API. (<a href="f1d905bb60</a> and <a href="69c8fc707b</a> by <a href="https://github.com/motiz88"><code>@​motiz88</code></a>)</li>
</ul>
<blockquote>
<p>NOTE: Experimental features are not covered by semver and can change at any time.</p>
</blockquote>
<ul>
<li><strong>[Experimental]</strong>: Fixes and improvements for symlink support. (<a href="0e2a70a439</a>, <a href="3bef954304</a>, and <a href="eeb211fdcf</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Experimental]</strong>: Fix bug where <code>&quot;exports&quot;</code> field would be used on relative imports within a package. (<a href="cd25c2b5bb</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
</ul>
<h2>v0.75.1</h2>
<ul>
<li><strong>[Feature]</strong>: <code>metro-inspector-proxy</code>: Add a human-readable reference to each inspector entries/pages.(<a href="https://github-redirect.dependabot.com/facebook/metro/pull/921">facebook/metro#921</a> by <a href="https://github.com/byCedric"><code>@​byCedric</code></a>)</li>
<li><strong>[Feature]</strong>: <code>metro-inspector-proxy</code>: Report errors in the console. (<a href="da8b41b279</a> by <a href="https://github.com/mattbfb"><code>@​mattbfb</code></a>)</li>
<li><strong>[Fix]</strong>: Race condition where a very recently modified file might have missing metadata.(<a href="baf28ab0ee</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: Source maps may have invalid entries when using Terser minification. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/928">facebook/metro#928</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: <code>metro-inspector-proxy</code>: Fetch source maps from Metro. (<a href="6690b393cc</a> by <a href="https://github.com/mattbfb"><code>@​mattbfb</code></a>)</li>
<li><strong>[Fix]</strong>: Mitigate potential source map mismatches with concurrent transformations due to <a href="https://github-redirect.dependabot.com/terser/terser/issues/1341">terser#1341</a>. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/929">facebook/metro#929</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
</ul>
<blockquote>
<p>NOTE: Experimental features are not covered by semver and can change at any time.</p>
</blockquote>
<ul>
<li><strong>[Experimental]</strong>: Add initial_build annotation to Resolving and Transforming Dependencies (<a href="fc83b521b2</a> by <a href="https://github.com/blakef"><code>@​blakef</code></a>)</li>
<li><strong>[Experimental]</strong>: Implement support for Package Exports (enabled via <code>resolver.unstable_enablePackageExports</code>) (<a href="4d7ab38ba9</a>, <a href="38b96f872a</a>, <a href="216d3e234c</a>, <a href="6e6f36fd98</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Experimental]</strong>: Implement support for symlinks (enabled via <code>resolver.unstable_enableSymlinks</code>) (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/925">facebook/metro#925</a>, <a href="https://github-redirect.dependabot.com/facebook/metro/pull/926">facebook/metro#926</a>, etc. by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
</ul>
<p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.75.0...v0.75.1">https://github.com/facebook/metro/compare/v0.75.0...v0.75.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="64d85f0c06"><code>64d85f0</code></a> Release 0.76.0</li>
<li><a href="c6548f7ccc"><code>c6548f7</code></a> Add assetExts to ResolutionContext, remove isAssetFile</li>
<li><a href="64426854e3"><code>6442685</code></a> Upgrade to Flow 0.201.0</li>
<li><a href="4876b6e701"><code>4876b6e</code></a> Bump <code>@​braintree/sanitize-url</code> from 6.0.0 to 6.0.2 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/935">https://github.com/facebook/flipper/issues/935</a>)</li>
<li><a href="79baa715cd"><code>79baa71</code></a> Update website Open Graph image</li>
<li><a href="3cbd9ae2ad"><code>3cbd9ae</code></a> Fix Haste map cleanup with Haste module duplicates</li>
<li><a href="cd25c2b5bb"><code>cd25c2b</code></a> Update exports resolution to ignore absolute and relative imports</li>
<li><a href="7e922270de"><code>7e92227</code></a> Fix resolution edge case for package subpaths redirected by mainFields</li>
<li><a href="4c520eda2e"><code>4c520ed</code></a> Document module API</li>
<li><a href="ad31b162d8"><code>ad31b16</code></a> Replace regex String.replace uses with String.replaceAll (drop Node.js 14 com...</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.75.0...v0.76.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=metro-config&package-manager=npm_and_yarn&previous-version=0.75.0&new-version=0.76.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/4582

Reviewed By: mweststrate

Differential Revision: D44131764

Pulled By: passy

fbshipit-source-id: 2a218377147d0803728c50fb753260c74942f6a1
2023-03-16 13:20:32 -07:00
Pascal Hartig
174e641c1e Use Node 16 for RN example (#4584)
Summary:
Per title.

Pull Request resolved: https://github.com/facebook/flipper/pull/4584

Reviewed By: lblasa

Differential Revision: D43904047

Pulled By: passy

fbshipit-source-id: 763bce56f3e8298e2f91632c99e7dd6ae1465c87
2023-03-08 10:17:54 -08:00
Pascal Hartig
918ae58c2a Upgrade dispatch-workflow action (#4495)
Summary:
It's currently failing and a few according to [the docs](https://github.com/benc-uk/workflow-dispatch) the token we supply shouldn't be necessary.

Pull Request resolved: https://github.com/facebook/flipper/pull/4495

Test Plan:
Sadly only one way:

testinprod

Reviewed By: lblasa

Differential Revision: D42989714

Pulled By: passy

fbshipit-source-id: e758340a583e351ff4e384514b70fecdf8bb3129
2023-02-03 03:16:24 -08:00
Pascal Hartig
c0cf7d62d6 Exclude .circleci folder from docs cleanup (#4335)
Summary:
Without this, our boilplate config gets deleted on every run:

https://github.com/JamesIves/github-pages-deploy-action#additional-build-files-

Pull Request resolved: https://github.com/facebook/flipper/pull/4335

Reviewed By: lblasa

Differential Revision: D41548935

Pulled By: passy

fbshipit-source-id: aea68dbb28ed07f0102be05695aa6f6225ef6e11
2022-11-28 05:16:16 -08:00
Ranesh Saha
47bc32974b Update action in release workflow (#4220)
Summary:
The release workflow is using a version of the github release action that is broken, due to ghr now being dynamically linked and not compatible with Alpine Linux's minimal version of libc. The fix is to use the version of the action which installs gcompat so that ghr can run on the docker image.

## Changelog

Update release workflow to use version of action compatible with latest version of ghr.

Pull Request resolved: https://github.com/facebook/flipper/pull/4220

Test Plan: N/A

Reviewed By: nikoant

Differential Revision: D40443738

Pulled By: aigoncharov

fbshipit-source-id: 7765420fbe034aa80ce07c698ff83773c81ed52f
2022-10-18 02:36:25 -07:00
Andrey Goncharov
af4ecc0a94 Fix Android publishing
Summary:
Android publishing job fails to attach APKs to the release. An OSS user (rasaha91) came up with a fix. Since passy is on a leave, I've made my own fork to get unblocked.

See https://github.com/aigoncharov/github-upload-release-artifacts-action

Reviewed By: lblasa

Differential Revision: D40378208

fbshipit-source-id: 35e8f41700972751b63014e35696e61cfe986eae
2022-10-14 03:56:14 -07:00
Ranesh Saha
0b746435ea Fix inability to create issue upon Publish failure (#4209)
Summary:
The publish job in the release workflow has been failing, but an issue has failed to be created due to the template file not being found. As per the error message, the template file isn't found because we need to check out the repo first.

## Changelog

Fix problem with auto-creating issue upon publish failure.

Pull Request resolved: https://github.com/facebook/flipper/pull/4209

Test Plan: Not able to run this locally, so we will need to wait upon the next release to ensure the issue gets created.

Reviewed By: mweststrate

Differential Revision: D40341329

Pulled By: aigoncharov

fbshipit-source-id: a9ad0a52a41ca13757fdd674937a075a024f618f
2022-10-13 06:58:14 -07:00
Lorenzo Blasa
9706f2892d Publishing workflow update
Summary:
These changes seem required as per the publishing plugin release notes.

Reference:
https://github.com/vanniktech/gradle-maven-publish-plugin/blob/master/CHANGELOG.md#version-0220-2022-09-09

Reviewed By: aigoncharov

Differential Revision: D40101370

fbshipit-source-id: fdc862de003b72f326c8a9f1b350b7573ba92e29
2022-10-05 08:47:29 -07:00
Lorenzo Blasa
8fb7c503b8 Add CI workflow (#4054)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/4054

Build RNW example on Github

Reviewed By: aigoncharov

Differential Revision: D39257309

fbshipit-source-id: dda414c025bfe6720449fe6c3d81fe9fb9373b2a
2022-09-07 02:21:58 -07:00
Lorenzo Blasa
23ed745105 Update Java version in Github workflow (#4052)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/4052

Update to use Java 11 instead of 1.8.

Aim is to bring parity with the other existing workflows but more importantly fix the build as is broken at the moment.

Reviewed By: antonk52

Differential Revision: D39254936

fbshipit-source-id: c60332a288d9a671df5db0180fb501ddf185a075
2022-09-05 03:54:17 -07:00
Andrey Goncharov
41d7b2a307 Update OSS node version (#3822)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3822

Update Node version in CI pipeline

Reviewed By: lblasa

Differential Revision: D37207646

fbshipit-source-id: 157d1da9b01ca3ad34047908abc629f84d6736bc
2022-06-16 06:27:01 -07:00
Lorenzo Blasa
9aed8ce02d Remove RSocket
Summary:
^
Changelog: Remove rsocket dependency for iOS

Reviewed By: aigoncharov

Differential Revision: D33656299

fbshipit-source-id: aab00c425976273112a127e06aca82dfd63194eb
2022-02-25 02:02:24 -08:00
Pascal Hartig
e602cc0305 GH Action: Only publish to NPM when tagged (#3453)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3453

Per title. Otherwise leads to continuous errors on every
commit like these: https://github.com/facebook/flipper/runs/5188689903?check_suite_focus=true

Reviewed By: nikoant

Differential Revision: D34216898

fbshipit-source-id: 686abdca5e70bee62917bcb8db265dcea5fcbb98
2022-02-15 04:14:25 -08:00
Pascal Hartig
b8fdb14dfb Add library verification step (#3436)
Summary:
This is pretty dumb but hopefully good enough to prevent accidental regressions. We simply check if there are "enough" `libevent_core.so`s in the bundle. This is obviously not future-proof but it's super cheap to run and if it causes problems at some point, we can always remove it.

Apologies for the formatting spam. Didn't notice until I submitted this that my editor got a little passive-aggressive.

Pull Request resolved: https://github.com/facebook/flipper/pull/3436

Test Plan: CI here.

Reviewed By: lblasa

Differential Revision: D34210743

Pulled By: passy

fbshipit-source-id: a57c397e39456fae33af9f3ceed08b6944eac79e
2022-02-14 11:30:45 -08:00
Pascal Hartig
6a28a712f9 Hopefully fix flipper-release npm publish step (#3366)
Summary:
This is really stupid but the download creates a directory with the same name before putting the file in it. I think `v2` no longer does but hey, this is the devil we know.

You can look at the actions further down to see that we reference all the other downloads by `filename/filename` as well, so this should do it.

Pull Request resolved: https://github.com/facebook/flipper/pull/3366

Test Plan: Another release, I'm afraid. This is a step you cannot dry-run.

Reviewed By: cekkaewnumchai, aigoncharov

Differential Revision: D33842700

Pulled By: passy

fbshipit-source-id: d6f7a4a711ec056ba16f13c72f2c550e9a632ac0
2022-01-28 06:32:51 -08:00
Andrey Goncharov
ef852438b0 Link react-flipper-example to local js-flipper (#3315)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3315

Before this change, it was impossible to make changes to js-flipper and react-flipper-example at the same time because react-flipper-example used a published version of js-flipper

Reviewed By: passy

Differential Revision: D33623034

fbshipit-source-id: b291b18aace49163a6edc4a3f5c22da9ef936b7c
2022-01-19 03:31:25 -08:00
Andrey Goncharov
28e79fe4e5 Run js-flipper tests on GH (#3298)
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/3298

Reviewed By: passy

Differential Revision: D33620152

fbshipit-source-id: 3ed14dd8a4813f9e3e8b62774d6969c52348e6d1
2022-01-17 07:55:41 -08:00
Pascal Hartig
c1d5a2c62f Back out "Temporarily remove flipper-server release steps"
Summary:
Original commit changeset: 1117a177c8eb

Original Phabricator Diff: D33584907 (8a3f48d7a4)

Reviewed By: aigoncharov

Differential Revision: D33585460

fbshipit-source-id: b4a220f7ddb1ce8aee24427df7cb81982ec431ce
2022-01-17 05:48:31 -08:00
Pascal Hartig
8a3f48d7a4 Temporarily remove flipper-server release steps (#3291)
Summary:
It's late Friday now and we still don't have a release out.

Let's revert this once we've got one stable build out.

Pull Request resolved: https://github.com/facebook/flipper/pull/3291

Reviewed By: fabiomassimo

Differential Revision: D33584907

Pulled By: passy

fbshipit-source-id: 1117a177c8eb12c7db69a53ad0bc949b53aaf04f
2022-01-14 09:26:46 -08:00
Pascal Hartig
9451911709 Fix windows build (for real this time?) (#3289)
Summary:
This previous attempt didn't work. Not even sure what happens now, it seems to just return the result of a boolean evaluation? Cool.

Still haven't verified that this works in the release build but noticed that we do effectively the same in the build step. By upgrading to the same revision of the action we use and then switching from `&&` to simply `;`, we can be reasonably sure that this will work now.

The alternative would be to switch to `pwsh` which appears to be the new name. `powershell` is the default shell and seems to be an older version without support for `&&`. I honestly never want to touch this or read about it again, so let's go with the simpler option.

Pull Request resolved: https://github.com/facebook/flipper/pull/3289

Reviewed By: aigoncharov

Differential Revision: D33582853

Pulled By: passy

fbshipit-source-id: 7c70ff360a5c327139b6ecb5463e85883a2caf9d
2022-01-14 06:30:38 -08:00
Michel Weststrate
ff0d5f2736 fix release build, attempt 2
Summary: Fix flipper-server release. Fixes https://github.com/facebook/flipper/runs/4803844153?check_suite_focus=true

Reviewed By: lblasa

Differential Revision: D33566443

fbshipit-source-id: 7610c4f73841a66ed9104f8ec0626d6d99bf5a71
2022-01-13 06:24:07 -08:00
Pascal Hartig
d825bd29c2 Fix Windows release job (#3282)
Summary:
I'm not entirely sure why this broke. Some Powershell versions
support `&&` but others don't. Something downgraded us, apparently.

Failing job: https://github.com/facebook/flipper/runs/4791210127?check_suite_focus=true
Issue: https://github.com/facebook/flipper/issues/3281
Stackoverflow post I copy-pasted from: https://stackoverflow.com/questions/65627536/the-token-is-not-a-valid-statement-separator-in-this-version

Pull Request resolved: https://github.com/facebook/flipper/pull/3282

Test Plan: New release, I reckon.

Reviewed By: aigoncharov

Differential Revision: D33565457

Pulled By: passy

fbshipit-source-id: 1751a84fc86d10ee87c60feecb07947e9d5780cf
2022-01-13 04:30:32 -08:00
Pascal Hartig
f34f146f1a Update js client path for dependabot (#3264)
Summary:
This has been failing since the move in D31688105 (9a47f41056).

Pull Request resolved: https://github.com/facebook/flipper/pull/3264

Test Plan: _eyes_

Reviewed By: antonk52

Differential Revision: D33509970

Pulled By: passy

fbshipit-source-id: 5cb49cc96fe7d74fa9a1820a99daf79641f25837
2022-01-11 07:44:15 -08:00
Pascal Hartig
cc70cf0fae Upgrade checkout workflows (#3241)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3241

Fixes https://github.com/facebook/flipper/issues/3196

Reviewed By: lawrencelomax

Differential Revision: D33403962

fbshipit-source-id: 3f282e5bd10fc25f72cac58fa97f026e00a87dae
2022-01-05 09:39:56 -08:00
Michel Weststrate
582ea64011 Publish flipper-server to NPM (#3224)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3224

Automatically publish to https://www.npmjs.com/package/flipper-server

Changelog: [experimental] It is now possible to run a full fledged Flipper as node + browser appication by using `npx flipper-server`

Pull Request resolved: https://github.com/facebook/flipper/pull/3224

Test Plan:
https://github.com/facebook/flipper/runs/4659854128?check_suite_focus=true

Checked that the build is non-fb, has no fb plugins etc, and runs from npm

{F690008124}

{F690008123}

{F690008122}

Reviewed By: nikoant

Differential Revision: D33297125

Pulled By: mweststrate

fbshipit-source-id: b5fe6fcb81c665036273db814cb61855aaceff85
2022-01-04 04:13:10 -08:00
Michel Weststrate
efdf9d2d64 Upgrade GH retry action so that stdout/ stderr is captures (#3211)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3211

The GH retry action did ate all the stdout / stderr, so if the retry fails, it was completely unclear why. This was fixed in a newer version of the action

Reviewed By: antonk52

Differential Revision: D33308437

fbshipit-source-id: a599161e0c72b95b35e6ecab8cd84c6fa7027cd3
2021-12-24 07:15:23 -08:00
Pascal Hartig
8ccae8a7ac Upgrade Android build infra (#3095)
Summary:
This includes a bunch of different things which I wanted to do separately, but it's all a massive Jenga Tower and you cannot remove a single piece.

- Litho upgrade
- Gradle plugin upgrade
- Remove storage permission as it apparently doesn't do anything above Android 10
- Upgraded build target to Android 12 because the new support lib/Kotlin stdlib required this which then caused the issue below to pop up
- Added "export=true" everywhere as this is now a blocking issue if you don't have it
- Upgraded to the LeakCanary2 plugin as version one no longer builds with an Android 12 target for the export reason
- Make CI run on JRE 11 because that's required by the new Gradle plugin
- Update internal CI to no longer define the SDK twice and use Java 11

Pull Request resolved: https://github.com/facebook/flipper/pull/3095

Test Plan: Built Android Sample and Tutorial app, connected to Flipper.

Reviewed By: lblasa

Differential Revision: D32644410

Pulled By: passy

fbshipit-source-id: 8978f158d9c642b3bbd9dbbd7321eb20098a7a53
2021-11-25 12:21:59 -08:00
Pascal Hartig
c9daf81098 Undo upload fix
Summary:
This one is actually fine. We don't do the upload/download dance,
so the file exists in the place we expect it to.

We can see in this run that the current path actually works:
https://github.com/facebook/flipper/runs/4316082427?check_suite_focus=true

Reviewed By: nikoant

Differential Revision: D32652626

fbshipit-source-id: ca9c52d2c3016fe2ec300d1f4fd875b9f3301e3b
2021-11-25 10:36:53 -08:00
Pascal Hartig
9f7085788c Increase publish verbosity (#3100)
Summary:
I can run the same commands locally and everything is fine but in CI, it creates two separate staging repositories.

Maybe this will shed some light.

Pull Request resolved: https://github.com/facebook/flipper/pull/3100

Reviewed By: nikoant

Differential Revision: D32651863

Pulled By: passy

fbshipit-source-id: 30441b29ab6a4270dee1c958e19242f71265a174
2021-11-25 10:33:29 -08:00
Pascal Hartig
93bc23e9cd Potential fix for artefact upload issue
Summary:
I've been investigating the now persistent upload issue for our artifacts and it appears to come down to artifacts being uploaded and downloaded as folder structures while they used to be individual files.

Annoyingly, the `ghr` tool we use for uploading throws a cryptic and misleading error: https://github.com/facebook/flipper/runs/4314584032?check_suite_focus=true

There is some more control in the `v2` version of the actions but for now, this seems like the safer option to fix this problem.

{F682461661}

Reviewed By: lblasa

Differential Revision: D32649218

fbshipit-source-id: 47ebefc434cb3b928b82a9fe8da3002b7b8465b6
2021-11-24 09:52:46 -08:00
Pascal Hartig
d9848ab6cf Upgrade upload action
Summary:
Fixed an issue with the setup of the retry script:

31ee58a796

Reviewed By: nikoant

Differential Revision: D32644463

fbshipit-source-id: 23ac1508784f24e9403e0bca0091f05847a9e91d
2021-11-24 06:31:15 -08:00
Pascal Hartig
dbe9106762 Create issue on publish failure (#3071)
Summary:
We've done this for the "release" part of the workflow
before but need to handle the "publish" branch separately.

Pull Request resolved: https://github.com/facebook/flipper/pull/3071

Test Plan: _eyes

Reviewed By: nikoant

Differential Revision: D32532348

Pulled By: passy

fbshipit-source-id: 622ed99ba509d4eaf7671e9b6ff3adbab277ab4e
2021-11-18 09:28:13 -08:00
Pascal Hartig
1b54a079f5 Upgrade upload actions (#3070)
Summary:
We're seeing some spurious failures, unrelated to any changes on our end.

I've upgraded the action to do two things:

- Retry on failure (up to three times): b0dfcdf1c7
- Replace the artefact if it's already present (otherwise this might fail subsequent retries): 92bec0ba48

Pull Request resolved: https://github.com/facebook/flipper/pull/3070

Reviewed By: nikoant

Differential Revision: D32532277

Pulled By: passy

fbshipit-source-id: f1899c89c405772490958674fa7f46f479c666f9
2021-11-18 08:50:26 -08:00
Pascal Hartig
c4fe39f413 Add failure issue tracking for release task (#3025)
Summary:
This failed without giving us a notification.

Pull Request resolved: https://github.com/facebook/flipper/pull/3025

Reviewed By: nikoant

Differential Revision: D32246987

Pulled By: mweststrate

fbshipit-source-id: da04b5d8e7e50480bdb0e0a5b55d387b0b23eced
2021-11-09 04:09:52 -08:00
Michel Weststrate
1e146d68c3 Fix publish script
Summary:
Changelog: Fix js-flipper package being published empty

Build js-flipper before publishing

Fixes(?) https://github.com/facebook/flipper/issues/3023

Reviewed By: jknoxville

Differential Revision: D32201978

fbshipit-source-id: 962b14fe1b5accb99bb06c098d86a6824599c967
2021-11-05 05:08:46 -07:00
Andrey Goncharov
3176c2f81d Update js-flipper in the pre-release phase and publish it
Summary:
1. Update js-flipper's version in pre-release
2. Update current version of js-flipper to match react-native-flipper
3. Publish js-flipper automatically

Reviewed By: mweststrate

Differential Revision: D31858522

fbshipit-source-id: e5a9816980d89d3ca6745bc16942f7b75f8d2a88
2021-10-25 04:35:12 -07:00
Pascal Hartig
0ae986758e Fix android build (#2956)
Summary:
Following mweststrate's advice on how to fix this.

Pull Request resolved: https://github.com/facebook/flipper/pull/2956

Test Plan: Watch the Action.

Reviewed By: lblasa

Differential Revision: D31502115

Pulled By: passy

fbshipit-source-id: 0f6dc73bcfde30fe7e2ee78e58d1c8e6fc16ec29
2021-10-08 06:55:05 -07:00
Pascal Hartig
4736abc29c Upgrade publish action
Summary: I upgraded the docker image which should pull the latest GHR release (https://github.com/tcnksm/ghr).

Reviewed By: lblasa

Differential Revision: D31442256

fbshipit-source-id: 0f9fa81ec1be1285aea3da621b7ef5a1e63c3e84
2021-10-08 03:40:49 -07:00
Pascal Hartig
111177b44e Upgrade to Node 14 for Actions (#2928)
Summary:
I believe that matches what we have internally. This has been causing some upgrades to fail.

Pull Request resolved: https://github.com/facebook/flipper/pull/2928

Reviewed By: aigoncharov

Differential Revision: D31324394

Pulled By: passy

fbshipit-source-id: eec38dcc6322e3e8957bbc20bf74d343855be8c0
2021-10-01 04:40:09 -07:00
Pascal Hartig
1ec7ebbdb5 Create issue on publish failure (#2904)
Summary:
Because the publish runs aren't triggered on the main branch, we have limited visibility. Sending push notifications, webhooks or email integrations are hard, but opening an issue seems like a decent work-around for this.

We can broaden this to more publish actions as needed.

Pull Request resolved: https://github.com/facebook/flipper/pull/2904

Test Plan: Ran on my fork which generated this issue: https://github.com/passy/flipper/issues/9

Reviewed By: mweststrate

Differential Revision: D31146956

Pulled By: passy

fbshipit-source-id: 08f66bd4c96a5ea2cc5e70a7461c30e7e1f3d42e
2021-09-27 06:10:08 -07:00
Pascal Hartig
da9511a5bf Fix CI build for Android (#2836)
Summary:
I've been really sweating about this one. It looks like Google now removed NDK 21 as it's too old. However, we've been struggling with the upgrade because OpenSSL was built against an old version of the NDK/glibc/LLVM/some other stuff.

I've now managed to create an OpenSSL distribution for 1.1.1k (we had 1.1.0h before) that seems to build with this after some small modifications.

This seems to do the trick, but I wouldn't be shocked if we found some more incompatibilities further down the line.

Pull Request resolved: https://github.com/facebook/flipper/pull/2836

Test Plan:
- Locally: `./gradlew :tutorial:installDebug`. Builds, starts up. Cool.
- Public GitHub CI: Happy.
- Circle CI: Only triggers post-land. We'll see. But the setup is simple, so hopefully it should work there, too.
- Internal CI: Waiting for signal.

Reviewed By: fabiomassimo

Differential Revision: D30839209

Pulled By: passy

fbshipit-source-id: efe599f28cc0edfdf2149f905c3483555239edc0
2021-09-09 08:46:59 -07:00