1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

179 Commits

Author SHA1 Message Date
Gastón Fournier
bc68b5d265
chore: remove sync to enterprise from release branches (#4112)
## About the changes
When we do releases on the release branch we should not sync that back
to master on unleash-enterprise repo. At most we can trigger a different
process to automate the release of unleash-enterprise, but that'd be a
different story.
2023-06-28 14:13:18 +02:00
Gastón Fournier
4599e5cc06
chore: Optimize docker build oss (#3951)
## About the changes
Reduce the build time of OSS docker image from
[~30m](https://github.com/Unleash/unleash/actions/workflows/docker_publish.yaml)
to [under
15m](https://github.com/Unleash/unleash/actions/runs/5222180536/jobs/9427342758)

1. Build frontend outside docker multiplatform.
2. Allow `frontend/build` to be copied to the image by removing this
from `.dockerignore`
3. Run with `--ignore-scripts` to avoid building the frontend on the
`prepare` script, but this requires us to run all the prepare scripts
manually (except the frontend build).
 
**Note:** we need to build frontend in the `prepare` script to be able
to have source code dependencies

## Manual Testing
Manually downloaded from
https://hub.docker.com/r/unleashorg/unleash-server/tags?page=1 and
compared both `unleash` folders from main and the version built with the
new process
https://github.com/Unleash/unleash/actions/runs/5223078089/jobs/9429430190#step:5:48

![Screenshot from 2023-06-10
21-11-33](https://github.com/Unleash/unleash/assets/455064/60a41739-904d-480d-8d80-bf17b7a70432)

No major difference was spotted (only expected changes due to
development done in main)

**Command used to extract the contents:** 

```
cd /tmp
mkdir main && cd main
docker pull unleashorg/unleash-server:main-edge-18-alpine
docker export $(docker create unleashorg/unleash-server:main-edge-18-alpine) > container.tar && tar xvf container.tar
mkdir ../new-process && cd ../new-process
docker pull unleashorg/unleash-server:sha-ccac902-18-alpine
docker export $(docker create unleashorg/unleash-server:sha-ccac902-18-alpine) > container.tar && tar xvf container.tar
meld ./unleash ../main/unleash
```
2023-06-12 09:15:09 +02:00
Gastón Fournier
51fc8f0550
chore: avoid building frontend twice (#3918)
## About the changes
Running `yarn install` without the `dist` folder will trigger a `yarn
build` automatically as part of the `prepare script`

As we can see here:
https://github.com/Unleash/unleash/actions/runs/5200272004/jobs/9378770279
```
[build:frontend] ✓ built in 41.10s
// more output
[build:frontend] ✓ built in 39.81s
```
2023-06-08 10:48:28 +02:00
renovate[bot]
6ab62d5bfa
chore(deps): update aws-actions/configure-aws-credentials action to v2 (#3893)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials)
| action | major | `v1` -> `v2` |

---

### Release Notes

<details>
<summary>aws-actions/configure-aws-credentials</summary>

###
[`v2`](https://togithub.com/aws-actions/configure-aws-credentials/releases/tag/v2)

[Compare
Source](https://togithub.com/aws-actions/configure-aws-credentials/compare/v1...v2)

This tag tracks the latest v2.x.x release.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-06 15:03:11 +02:00
Gastón Fournier
6af72325c1
chore: simplify workflows (#3902)
## About the changes
This PR removes one workflow file and merges it into a similar workflow
file, these are the differences:

![image](https://github.com/Unleash/unleash/assets/455064/8afa791e-5f78-45cb-baca-1c28d4559d51)


This should help improving maintainability of the workflows
2023-06-05 14:34:22 +02:00
Gastón Fournier
a7bd91d621
fix: Remove repository which is no longer needed (#3900)
## About the changes
Sync fails
https://github.com/Unleash/unleash/actions/runs/5174602051/jobs/9321118800#step:3:23
due to https://github.com/ivarconr/unleash-enterprise/pull/562 because
we now assume the repository is Unleash/unleash

This removes the repository from the payload
2023-06-05 08:03:16 +00:00
Gastón Fournier
64f212fdda
fix: author and email should be for PRs (#3899)
## About the changes
Previous PR https://github.com/Unleash/unleash/pull/3871 we were
supposed to change this for PRs but the change was made on
`release.yaml` file. This fixes the issue
2023-06-05 09:47:20 +02:00
renovate[bot]
18edaf1d96
chore(deps): update actions/checkout action to v3 (#3891)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://togithub.com/actions/checkout) | action |
major | `v2` -> `v3` |

---

### Release Notes

<details>
<summary>actions/checkout</summary>

###
[`v3`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v352)

[Compare Source](https://togithub.com/actions/checkout/compare/v2...v3)

- [Fix api endpoint for
GHES](https://togithub.com/actions/checkout/pull/1289)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-29 17:47:30 +02:00
Gastón Fournier
c7d8c9fd25
chore: name and email convention (#3871)
## About the changes
Minor improvement to communicate the author of a commit as `Name
<Email>`

Another option is to send email and name in different fields but we're
only using it here
https://github.com/ivarconr/unleash-enterprise/blob/master/.github/update_dependency_version.sh#L39
so this should be fine
2023-05-26 14:04:41 +00:00
Christopher Kolstad
3409b0c5a0
task: Add Unit test result check task (#3695)
After a Team Retro, one of our squads felt like we needed more data on
our test suites. This is the first effort to make our test results
easier to grab. It uses the test-reporter action to add a github check
to our main build and PR builds with our test results.

This at least should make it easier to parse which tests are failing.
However, it does not give us trends. So it does not yet make it easier
to decide which tests are flaky just from a quick view.

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-25 11:03:54 +00:00
Gastón Fournier
540c5f2cc5
fix: workflow was moved (#3852)
## About the changes
This script was moved, updating the ref
2023-05-24 10:20:31 +02:00
Gastón Fournier
08cf5e3041
chore: delay static asset generation (#3848)
## About the changes
Delay static asset generation to speed up the CI/CD pipeline.
Next, we should add a validation step before deployment to validate that
the static assets were properly published
2023-05-23 23:27:44 +02:00
Gastón Fournier
9f6e885830
fix: new workflow name (#3845)
Adopt the new workflow name:
https://github.com/ivarconr/unleash-enterprise/pull/529
2023-05-23 15:55:59 +02:00
renovate[bot]
8004d25631
chore(deps): update lycheeverse/lychee-action action to v1.8.0 (#3839) 2023-05-23 15:19:23 +02:00
Gastón Fournier
2152a04a85
fix: Use the correct actor (#3842)
Use the right author name as tested here
https://github.com/Unleash/unleash/actions/runs/5056589150/jobs/9074236865#step:6:833
2023-05-23 12:57:14 +01:00
Gastón Fournier
868df5d941
test: Add debug logs (#3841)
These logs will help us identify what should we use instead of
e55e7feed3/.github/workflows/notify_enterprise.yaml (L56)
which is being set to web-flow
https://github.com/Unleash/unleash/actions/runs/5055463116/jobs/9071696845#step:7:12
2023-05-23 13:15:11 +02:00
Gastón Fournier
574c5a92f4
chore: disable null checks until we have time to fix this (#3830)
## About the changes
This action started to fail and despite being safe to ignore it's still
annoying. I'm disabling it for now until I can look into what's going on
with it

Example:
https://github.com/Unleash/unleash/pull/3829#issuecomment-1557372501
2023-05-22 18:06:52 +02:00
renovate[bot]
e5df517ad9
chore(deps): update akhileshns/heroku-deploy action to v3.12.14 (#3804) 2023-05-18 16:17:44 +03:00
Jaanus Sellin
e075d46f79
fix: change commit hash step name (#3784) 2023-05-16 13:36:17 +03:00
Jaanus Sellin
a7751dfbdd
feat: set commit hash as static asset version (#3783) 2023-05-16 11:44:50 +03:00
Jaanus Sellin
0a3cf646be
feat: new notify enterprise workflow (#3781) 2023-05-16 11:06:07 +03:00
Jaanus Sellin
da35454bd8
feat: release inputs added to dispatcher (#3756) 2023-05-16 10:38:12 +03:00
Gastón Fournier
00549ceaa4
fix: build is not present in npm package (#3759)
## About the changes
Before publishing we should build. This is because previously we were building on prepare https://github.com/Unleash/unleash/pull/3736/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L45
2023-05-12 13:24:27 +00:00
Gastón Fournier
18d585cd5f
fix: update GH action (#3758)
## About the changes
Another piece requiring changes, which adapts to:
https://github.com/Unleash/unleash/pull/3736
2023-05-12 12:14:39 +00:00
Nuno Góis
a9c24e4262
chore: simplify package scripts (#3736)
# Simplify package scripts

This PR's purpose is to raise a discussion surrounding our current
package scripts.

It includes some suggestions that aim to simplify the scripts and
hopefully bring a much more straightforward approach to developing and
contributing to Unleash.

Building (prod) should only happen **explicitly** and when needed.

## Before PR (current behavior)

- Clone the project;
- Open 2 terminals: One for `unleash` and another for
`unleash/frontend`;
- On `unleash`: 
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start:dev` to start backend in dev mode (`tsc-watch`);
- On `unleash/frontend`:
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start` to start frontend in dev mode (`vite`);

So it seems to me like we build unnecessarily every time we install
dependencies. Neither dev scripts need to build the project, as backend
uses `tsc-watch` and frontend uses `vite`. I'm unsure why this is the
case, as building can take a very long time.


![image](https://github.com/Unleash/unleash/assets/14320932/5ecb7df1-e5b4-4d70-ba7e-97119f5d1116)

There's also some complexity in the way we need to split the terminal to
`cd` into `frontend` and treat it as a different project. The fact that
we have different script names is also confusing (`yarn start`, `yarn
start:dev`, etc).

## After PR

- Clone the project;
- Run `yarn` to install all dependencies;
- Run `yarn dev` to get started developing Unleash;

Running `yarn` should take care of everything needed to start
developing. This includes installing dependencies for frontend as well.
It should not build projects if we are not being explicit about it,
especially since we don't need to build them at this stage.


![image](https://github.com/Unleash/unleash/assets/14320932/614e42fc-3467-432f-91fc-624b1b35c7c1)

Running `yarn dev` should start the project in dev mode. This means
running both projects in `dev` mode, which for `backend` means running
`tsc-watch` and for `frontend` means running `vite`.

Here this PR attempts to provide a better DX by using
[concurrently](https://www.npmjs.com/package/concurrently) and
[wait-on](https://www.npmjs.com/package/wait-on) - This means both tasks
are ran simultaneously, stdout is labeled accordingly, and are stopped
together. It also means that `frontend` waits for `backend` to be
serving at `4242` before starting, since `frontend` starts pretty much
immediately with `vite` and `backend` takes a bit longer. Of course,
when the `backend` is hot-reloading you may still find some
`ECONNREFUSED`s on `frontend` stdout while it recompiles.


![image](https://github.com/Unleash/unleash/assets/14320932/8bde8ee2-3cad-4e3f-a0db-9eed60cfb04d)

No more splitting your terminal and treating `frontend` as a separate
project.

## Discussion points

Maybe there's a better alternative to `tsc-watch`? I briefly explored
some alternatives and while they had a much faster starting speed,
hot-reload was sometimes slower. IMO we should aspire to run
`src/server-dev.ts` directly and only compile when needed.

Running `dev:backend` still serves a version of the frontend (at 4242).
**Why? Can we remove that behavior?**
I can't imagine a scenario in dev where we wouldn't want to run the
latest version of the frontend with `vite`.

~~**Note:** This PR removes all other out-of-scope scripts to focus on
this revamp. If we decide to merge it, we should evaluate what other
existing scripts we still want to include. May be a good opportunity to
clean up unused ones and only include the ones we really use. This
includes scripts that our GH actions rely on.~~

**Update:** In an effort to minimize impact surface of this PR and make
it a bit more ready for merging:
- It updates some docs in
2a4ff805e8
and
1bbc488251
to reflect our new simplified flow;
- It includes the old package scripts for now in
039bc04699;
- It updates some of our GH actions to reflect the new scripts in
7782cb9b12;

Given its current status I'll promote the PR to "ready for review". 

I still think we should have a second look at our existing scripts and
GH actions to see what we really need and/or should adapt, but it should
be a team effort so we have a broader context. Maybe on a follow-up PR.

Does this require any changes to related projects (e.g. Enterprise)?

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-12 11:23:22 +01:00
Nuno Góis
edefa6fc7e
test: add interactive demo guide e2e test (#3656)
This PR revamps e2e tests, while adding a new one for the interactive
demo guide:
 - Bumps Cypress from `9.7.0` to `12.11.0`;
 - Bumps Cypress GH action from `v2` to `v5`;
 - Makes any adjustments needed;
 - Fixes a lot of issues identified with existing tests;
- Adds new `demo.spec.ts` e2e test that covers the entire demo guide
flow;

**Note:** Currently does not include `demo.spec.ts` in the GH action, as
it
[fails](https://github.com/Unleash/unleash/actions/runs/4896839575/jobs/8744137231?pr=3656)
on step 2.13 (last step of "user-specific" topic). It runs perfectly
fine locally, though.

Might be placebo, but in general tests seem less flaky now and they may
even be faster (especially when not adding the `demo` one, which would
always take a long time).
2023-05-08 09:16:18 +01:00
renovate[bot]
a39f54b4ed
chore(deps): update metcalfc/changelog-generator action to v4.1.0 (#3702)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[metcalfc/changelog-generator](https://togithub.com/metcalfc/changelog-generator)
| action | minor | `v4.0.1` -> `v4.1.0` |

---

### Release Notes

<details>
<summary>metcalfc/changelog-generator</summary>

###
[`v4.1.0`](https://togithub.com/metcalfc/changelog-generator/releases/tag/v4.1.0)

[Compare
Source](https://togithub.com/metcalfc/changelog-generator/compare/v4.0.1...v4.1.0)

-
[afdcb94](afdcb9470a)
- Releasing support for branches with slashes in 4.1.0.
-
[6745040](67450402da)
- Merge pull request
[#&#8203;188](https://togithub.com/metcalfc/changelog-generator/issues/188)
from metcalfc/pr\_183
-
[afbb436](afbb436356)
- Adding tests for branches with slash in names.
-
[f624ce0](f624ce0f5a)
- Add support for / in branch names
-
[1999345](19993455b6)
- Bump eslint from 8.34.0 to 8.36.0
-
[ead7f3a](ead7f3ad70)
- Merge pull request
[#&#8203;187](https://togithub.com/metcalfc/changelog-generator/issues/187)
from metcalfc/dependabot/npm_and_yarn/eslint-8.36.0
-
[e4611ec](e4611eca19)
- Bump eslint from 8.34.0 to 8.36.0
-
[007a68c](007a68c897)
- Merge pull request
[#&#8203;184](https://togithub.com/metcalfc/changelog-generator/issues/184)
from metcalfc/dependabot/npm_and_yarn/eslint-8.34.0
-
[9ffb3f5](9ffb3f53a9)
- Bump eslint from 8.33.0 to 8.34.0
-
[a6c4304](a6c430458e)
- Merge pull request
[#&#8203;182](https://togithub.com/metcalfc/changelog-generator/issues/182)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.4
-
[99d2f13](99d2f13d54)
- Bump prettier from 2.8.3 to 2.8.4
-
[1c1842e](1c1842e90c)
- Merge pull request
[#&#8203;181](https://togithub.com/metcalfc/changelog-generator/issues/181)
from metcalfc/dependabot/npm_and_yarn/eslint-8.33.0
-
[9f82ca5](9f82ca5bea)
- Bump eslint from 8.32.0 to 8.33.0
-
[baff252](baff252eae)
- Merge pull request
[#&#8203;180](https://togithub.com/metcalfc/changelog-generator/issues/180)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.36.1
-
[07a2b81](07a2b81172)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.36.0
to 0.36.1
-
[8434262](8434262796)
- Merge pull request
[#&#8203;177](https://togithub.com/metcalfc/changelog-generator/issues/177)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.3
-
[2a6983c](2a6983c960)
- Merge pull request
[#&#8203;178](https://togithub.com/metcalfc/changelog-generator/issues/178)
from metcalfc/dependabot/npm_and_yarn/eslint-8.32.0
-
[8ad4443](8ad44437b3)
- Bump eslint from 8.31.0 to 8.32.0
-
[1526b06](1526b0627d)
- Bump prettier from 2.8.2 to 2.8.3
-
[3177d3f](3177d3f626)
- Merge pull request
[#&#8203;176](https://togithub.com/metcalfc/changelog-generator/issues/176)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.2
-
[9631f7a](9631f7af35)
- Bump prettier from 2.8.1 to 2.8.2
-
[682bb79](682bb796f8)
- Merge pull request
[#&#8203;175](https://togithub.com/metcalfc/changelog-generator/issues/175)
from metcalfc/dependabot/npm_and_yarn/eslint-8.31.0
-
[a0a7da8](a0a7da8672)
- Bump eslint from 8.30.0 to 8.31.0
-
[c2958f1](c2958f1f63)
- Merge pull request
[#&#8203;173](https://togithub.com/metcalfc/changelog-generator/issues/173)
from metcalfc/dependabot/npm_and_yarn/eslint-8.30.0
-
[10a5fd0](10a5fd04e6)
- Bump actions/stale from 6 to 7
([#&#8203;174](https://togithub.com/metcalfc/changelog-generator/issues/174))
-
[3083199](3083199359)
- Bump eslint from 8.29.0 to 8.30.0
-
[3a5b89e](3a5b89e488)
- Remove set-output in favor of GITHUB_OUTPUT
([#&#8203;172](https://togithub.com/metcalfc/changelog-generator/issues/172))
-
[1776f11](1776f11a43)
- Merge pull request
[#&#8203;171](https://togithub.com/metcalfc/changelog-generator/issues/171)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.1
-
[0877839](0877839bb8)
- Merge pull request
[#&#8203;169](https://togithub.com/metcalfc/changelog-generator/issues/169)
from metcalfc/dependabot/npm_and_yarn/eslint-8.29.0
-
[ac3ac34](ac3ac348dd)
- Bump prettier from 2.8.0 to 2.8.1
-
[f6eef02](f6eef02196)
- Bump eslint from 8.28.0 to 8.29.0
-
[db4799e](db4799e0d1)
- Merge pull request
[#&#8203;170](https://togithub.com/metcalfc/changelog-generator/issues/170)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.36.0
-
[5d4ff88](5d4ff88fc2)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.34.0
to 0.36.0
-
[03ce106](03ce106ed0)
- Merge pull request
[#&#8203;167](https://togithub.com/metcalfc/changelog-generator/issues/167)
from metcalfc/dependabot/npm_and_yarn/eslint-8.28.0
-
[43ceb1d](43ceb1d18f)
- Merge pull request
[#&#8203;168](https://togithub.com/metcalfc/changelog-generator/issues/168)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.0
-
[f2773af](f2773af55c)
- Bump prettier from 2.7.1 to 2.8.0
-
[1c00ff3](1c00ff33ba)
- Bump eslint from 8.26.0 to 8.28.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS40IiwidXBkYXRlZEluVmVyIjoiMzUuNzEuNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-06 12:03:26 +00:00
renovate[bot]
115a689c07
chore(deps): update lycheeverse/lychee-action action to v1.7.0 (#3701)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | minor | `v1.6.1` -> `v1.7.0` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.7.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.7.0):
Version 1.7.0

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.6.1...v1.7.0)

##### What's Changed

- Fix three typos in README by
[@&#8203;phieri](https://togithub.com/phieri) in
[https://github.com/lycheeverse/lychee-action/pull/184](https://togithub.com/lycheeverse/lychee-action/pull/184)
- CI: Automatic vX tag update workflow by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/185](https://togithub.com/lycheeverse/lychee-action/pull/185)
- Format arguments in CI pipeline by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/186](https://togithub.com/lycheeverse/lychee-action/pull/186)
- Test lychee cache by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/187](https://togithub.com/lycheeverse/lychee-action/pull/187)
- Cleanup tar archive; make installation more robst by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/189](https://togithub.com/lycheeverse/lychee-action/pull/189)
- Readme: Add info about split up cache steps by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/190](https://togithub.com/lycheeverse/lychee-action/pull/190)
- bump lychee version by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/192](https://togithub.com/lycheeverse/lychee-action/pull/192)

##### New Contributors

- [@&#8203;phieri](https://togithub.com/phieri) made their first
contribution in
[https://github.com/lycheeverse/lychee-action/pull/184](https://togithub.com/lycheeverse/lychee-action/pull/184)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.6.1...v1.7.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS40IiwidXBkYXRlZEluVmVyIjoiMzUuNzEuNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-06 05:45:31 +00:00
Christopher Kolstad
1b248a03e9
docs: Metrics tag openapi docs (#3572)
I've copied most of the descriptions from what we did for batch metrics
under the Edge tag, however there are a couple of top level descriptions
that are "fine" but I'm definitely open to suggestions.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-04-26 12:10:57 +02:00
Gastón Fournier
201c86838f
Test npm publish (#3554)
## About the changes

https://github.blog/changelog/2022-10-24-npm-v9-0-0-released/ introduced
a breaking change in the way they handle files inside package.json which
caused some issues with the way we pack and distribute Unleash:

> npm pack now follows a strict order of operations when applying ignore
rules. If a files array is present in the package.json, then rules in
.gitignore and .npmignore files from the root will be ignored.

What we discovered is that when having a nested .gitignore (the one we
have inside frontend), `npm publish` was taking that nested .gitignore
into account (despite the fact that we also have a package.json with
files inside the same folder). We tricked this by removing the `build`
folder from `frontend/.gitignore` and instead adding it into the root
`.gitignore` which is being ignored by `npm publish` following what's
stated in the release note above.

-----------------

Co-authored-by: Gard Rimestad <gard@getunleash.io>
2023-04-18 15:44:19 +02:00
Gastón Fournier
e6f3b3009a
fix: missing node engine upgrade to 18 (#3552)
## About the changes
Updates frontend engine minimum version to node 18 and also improves
some messages in the release GHA task
2023-04-18 12:42:49 +00:00
Gastón Fournier
e7d3182af5
fix: gh actions that run on main (#3550)
## About the changes
These also need to be migrated to node 18
2023-04-18 08:55:55 +00:00
Gastón Fournier
0426dd505d
chore: update to node 18 (#3527)
## About the changes
This upgrades our main branch to use node 18 which is the active LTS
version and stops using node 14 which reaches the end of life in a few
weeks: https://nodejs.dev/en/about/releases/

This PR also adds `--no-experimental-fetch` for frontend tests and other
frontend commands. Related to:
https://github.com/node-fetch/node-fetch/issues/1566

More about the experimental fetch release:
https://nodejs.org/en/blog/announcements/v18-release-announce#fetch-experimental
2023-04-18 10:35:32 +02:00
Gastón Fournier
0b612c835a
chore: Auto assign PR (#3531)
## About the changes
This will auto-assign any PR to the opener of the PR. This should help
identify internal PRs from external ones, mainly helping our GitHub
Watcher role

PoC done in unleash-edge:
https://github.com/Unleash/unleash-edge/actions/workflows/auto-assign-pr-author.yaml
2023-04-17 10:34:23 +01:00
andreas-unleash
7e5838a681
fix: remove e2e tests (#3515)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
After discussions around e2e tests:
- Became clear that the intention is to test core functionality only

Removing 2 test files:
- notifications.spec.ts : because all PRs are run against the same
heroku backend - no guarantee that more notifications will not happen as
other tests run - so the test is flaky
- settings.spec.ts: depends on instance being enterprise and a flag on  
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-13 16:04:06 +03:00
andreas-unleash
99c555bf59
chore: refactor Cypress tests (#3445)
Adds proper typescript support.
Created reusable commands
Added README for cypress test
Refactored tests
Fixed bugs as I found them.
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-04 11:46:28 +03:00
renovate[bot]
e828f18e65
chore(deps): update akhileshns/heroku-deploy action to v3.12.13 (#3424)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[akhileshns/heroku-deploy](https://togithub.com/akhileshns/heroku-deploy)
| action | patch | `v3.12.12` -> `v3.12.13` |

---

### Release Notes

<details>
<summary>akhileshns/heroku-deploy</summary>

###
[`v3.12.13`](https://togithub.com/AkhileshNS/heroku-deploy/releases/tag/v3.12.13)

[Compare
Source](https://togithub.com/akhileshns/heroku-deploy/compare/v3.12.12...v3.12.13)

Switched to node 16 due to deprecation of node 12 (Thank you to
[@&#8203;brtrick](https://togithub.com/brtrick) for PR)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-30 01:13:21 +00:00
Mateusz Kwasniewski
a6bc33c04a
Update reset_heroku.yml 2023-03-29 15:11:53 +02:00
Mateusz Kwasniewski
c5d57a51ad
Update reset_heroku.yml 2023-03-29 14:55:40 +02:00
Mateusz Kwasniewski
e62a529331
reset heroku GH action (#3420) 2023-03-29 14:51:45 +02:00
Tymoteusz Czech
f124997485
E2E test - batch updates (#3392) 2023-03-29 14:47:12 +03:00
Gastón Fournier
dfd7830881
fix: add build frontend (#3324)
## About the changes
Building main when building the main branch. I thought it was not needed
but apparently it is
2023-03-15 14:21:45 +00:00
Gastón Fournier
8cdd68914e
chore: avoid building frontend when possible (#3278)
## About the changes
This is based on @nunogois suggestion to split the build in two, so we
don't build the frontend every time we run `yarn`

e2e frontend tests were forced to run by modifying frontend/README.md

### Important files
Some github actions had to be updated to also build the frontend. The
Dockerfile building our docker image was also looked into but it should
work as is


## Discussion points
This is a potentially risky operation as we might overlook something
that requires building the frontend which might lead to invalid builds.
We need to make sure when we do this we don't have any release planned.
2023-03-15 13:17:32 +01:00
Gastón Fournier
8109c13e66
chore: enable strictNullCheck but ignore problems at compile time (#3273)
## About the changes
This enables strictNullChecks which will give us nice hints in our IDEs
to avoid introducing more and hopefully will encourage us to fix some of
the existing problems.

Also:
1. The compiler explicitly ignores these errors
2. The "null checks action" still verifies we're not introducing new
ones.

The combination of these two things should help us to reduce the number
of nulls

For testing that the action still works (cause it was modified), [a
commit](5c4b818d1a)
was added introducing a bunch of null check errors:
https://github.com/Unleash/unleash/actions/runs/4364648191/jobs/7632224720
2023-03-10 10:27:56 +01:00
renovate[bot]
763cd56af3
chore(deps): update lycheeverse/lychee-action action to v1.6.1 (#3283)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | patch | `v1.6.0` -> `v1.6.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.6.1`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.6.1):
Version 1.6.1

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.6.0...v1.6.1)

#### Summary

Hotfix release, which restores old behavior for cached links with status
code 2xx.
This temporarily broke some downstream pipelines.

#### What's Changed

- Bump lychee to 0.11.1 by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/181](https://togithub.com/lycheeverse/lychee-action/pull/181)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.6.0...v1.6.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE1OS4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-09 17:49:57 +00:00
renovate[bot]
adc6863ad9
chore(deps): update lycheeverse/lychee-action action to v1.6.0 (#3237)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | minor | `v1.5.4` -> `v1.6.0` | `v1.6.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.6.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.6.0):
Version 1.6.0

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.5.4...v1.6.0)

#### What's Changed

- Use random tempfile for `LYCHEE_TMP` by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/173](https://togithub.com/lycheeverse/lychee-action/pull/173)
- Bump actions/checkout from 3.1.0 to 3.2.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/175](https://togithub.com/lycheeverse/lychee-action/pull/175)
- Bump actions/checkout from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/177](https://togithub.com/lycheeverse/lychee-action/pull/177)
- Bump to lychee version 0.11.0 by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/180](https://togithub.com/lycheeverse/lychee-action/pull/180)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.5.4...v1.6.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4yIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-02 05:53:54 +00:00
renovate[bot]
a596301a3f
chore: update actions/checkout action to v3 (#2915)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://togithub.com/actions/checkout) | action |
major | `v2` -> `v3` |

---

### Release Notes

<details>
<summary>actions/checkout</summary>

###
[`v3`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v310)

[Compare Source](https://togithub.com/actions/checkout/compare/v2...v3)

- [Use @&#8203;actions/core `saveState` and
`getState`](https://togithub.com/actions/checkout/pull/939)
- [Add `github-server-url`
input](https://togithub.com/actions/checkout/pull/922)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDUuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEwOC40In0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-28 15:16:45 +01:00
Gastón Fournier
2e749a2b3e
docs: better comment in strictNullCheck action (#3198)
## About the changes
This is a small improvement adding more context to the comment message
when this action fails. 

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-02-27 12:06:09 +00:00
Mateusz Kwasniewski
6ff7851474
refactor: remove explicit shell 2023-02-27 11:32:25 +01:00
Mateusz Kwasniewski
8886cd6ee6
fix: gh action shell (#3200) 2023-02-27 11:19:31 +01:00