1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-27 01:19:00 +02:00
Commit Graph

322 Commits

Author SHA1 Message Date
renovate[bot]
e875604e1d
chore(deps): update actions/checkout action to v4 (#10192) 2025-06-24 09:53:47 +02:00
renovate[bot]
6871f52107
chore(deps): update actions/github-script action to v7 (#9040) 2025-06-23 10:48:27 +00:00
Christopher Kolstad
740990b0ed
chore: Add PSF to approved licenses list (#10148)
http://docs.python.org/license.html states that though GPL-compatible,
PSF allows usage without having to redistribute own source code.
2025-06-17 10:34:20 +02:00
Gastón Fournier
07998e5588
feat: ability to run npm release from branch (#10120)
This is to be able to release 7.0.0 from the branch 7.0, due to this
failed job
https://github.com/Unleash/unleash/actions/runs/15586992840/job/43895801674

Failure was because package.json already had 7.0.0 and I don't want to
use --force
2025-06-11 16:22:09 +02:00
Gastón Fournier
2d228eea76
chore: openapi-diff on PRs (#10100) 2025-06-10 16:51:12 +02:00
Christopher Kolstad
1a0cfd6821
task(ci): Bump base image for OSS docker (#10014)
We're building with node 22 locally, so our docker image should also use
node 22. This PR bumps our docker workflow to use 22.15.1 image.
2025-05-16 15:50:58 +02:00
Christopher Kolstad
8afaf7e88b
fix(ci): update config to make GHA reporting be better 2025-05-16 15:04:40 +02:00
Christopher Kolstad
b133bb842b
fix(ci): fix incorrect parameter usage to coverallsapp github action 2025-05-16 11:56:50 +02:00
Christopher Kolstad
2e7d9ac109
fix(ci): Setup cobertura coverage 2025-05-16 11:46:14 +02:00
Christopher Kolstad
b681702b77
task: migrate tests to vitest
Vitest Pros:
* Automated failing test comments on github PRs
* A nice local UI with incremental testing when changing files (`yarn
test:ui`)
* Also nicely supported in all major IDEs, click to run test works (so
we won't miss what we had with jest).
* Works well with ESM

Vitest Cons:
* The ESBuild transformer vitest uses takes a little longer to transform
than our current SWC/jest setup, however, it is possible to setup SWC as
the transformer for vitest as well (though it only does one transform,
so we're paying ~7-10 seconds instead of ~ 2-3 seconds in transform
phase).
* Exposes how slow our tests are (tongue in cheek here)
2025-05-16 11:19:10 +02:00
Gastón Fournier
23d55340f2
chore: now we need to build before running tests (#9989)
This should fix the coverage report
2025-05-14 11:33:32 +00:00
renovate[bot]
d17d68d6aa
chore(deps): update node.js to v22 (#9487) 2025-05-14 10:31:18 +00:00
Gastón Fournier
2a083edc14
chore: accept 429 responses (#9974)
When being throttled assume the link is ok, eventually someday it will
be checked

Already tested it works on this branch:
https://github.com/Unleash/unleash/actions/runs/14993127371
2025-05-13 11:05:55 +01:00
hypermod-io[bot]
9d6c18b94a
Welcome to Hypermod (#9897)
Welcome to Hypermod! 🚀

This PR introduces the Hypermod Workflow File which connects the
repository to Hypermod.
The workflow will be triggered by Hypermod when a deployment is
requested, which then uses Hypermod CLI to apply automated code
transformations to your source files.
After the transformations is complete, diffs are collected and a pull
request is created.

Please review the changes and merge this PR to connect.

For more information, visit
[Hypermod](https://hypermod.io/docs/installation).

Co-authored-by: Christopher Kolstad <chriswk@fastmail.com>
2025-05-06 08:09:07 +00:00
Gastón Fournier
a88e781391
feat: run cypress against current branch (#9793)
## About the changes
Currently, we're running against the older version of our UI. When
making changes to it we want to make sure we're testing the current code

**Details in comments**

---------

Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
2025-04-22 11:58:22 +02:00
Jaanus Sellin
bc7856a23a
feat: enter will select the first filtered value (#9807)
![image](https://github.com/user-attachments/assets/deff3204-100d-464f-8a87-f36759bdee3a)
2025-04-21 16:56:54 +03:00
Tymoteusz Czech
d60ea1acd4
feat: redirect logic refactor (#9734) 2025-04-17 12:07:08 +02:00
Gastón Fournier
713c5560a8
chore: fix coverage report (#9695) 2025-04-15 16:25:25 +02:00
Christopher Kolstad
4b3c808169
Task/bump docker base image (#9716)
As reported in #9710 . This PR updates to 20.19.0-alpine3.21 which
according to docker's own scan now longer is affected by the CVE
2025-04-08 10:56:50 +02:00
Gastón Fournier
6432262be5
chore: change default for release (#9681)
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2025-04-02 14:12:09 +00:00
Gastón Fournier
bba85dc9b0
chore: fix coverage tests (#9674)
Coverage has been failing for a while:
https://github.com/Unleash/unleash/actions/workflows/build_coverage.yaml
It looks related to minimatch version:
```
     TypeError: /home/runner/work/unleash/unleash/src/lib/util/isDefined.ts: minimatch is not a function
```

Removing `"minimatch": "^10.0.0",` resolution seems to fix it, but it
will likely introduce a security vulnerability error

Works on my machine results:
```shell
Test Suites: 345 passed, 345 total
Tests:       3 skipped, 3119 passed, 3122 total
Snapshots:   110 passed, 110 total
Time:        218.532 s
```
2025-04-02 11:59:47 +02:00
Gastón Fournier
5f238d6b6d
chore: use a local image of unleash enterprise for testing FE (#9509)
This removes the need of running a heroku instance with enterprise to
run frontend tests. We can also get rid of vercel deployments of the
frontend for PRs (ofc we'd be loosing the preview if we do this)

It relies on the free enterprise docker image to spin up a clean Unleash
instance on each frontend spec test.

It also seems to speed up tests, I guess because we don't have to wait
for vercel deployment queue:

![image](https://github.com/user-attachments/assets/60a2aef1-9a5a-442d-b241-8c5c145c679e)


Compared with other recent PRs:

![image](https://github.com/user-attachments/assets/9a7498aa-26e6-48a4-aba0-c67e5380ced4)

Unrelated to this PR but something is making the features spec tests
very slow since Cypress upgrade:
https://github.com/Unleash/unleash/actions/runs/13784760762/job/38550079932#step:4:138
2025-03-12 13:47:36 +01:00
renovate[bot]
4e040f0eab
chore(deps): update lycheeverse/lychee-action action to v2 (#9459) 2025-03-11 12:11:31 +01:00
Gastón Fournier
e1e7f77b85
chore: delete .github/workflows/generate-docs.yaml (#9506)
This workflow has been disabled for a long time and caused confusion the
other day with Melinda while trying to debug some documentation issue.

Now documentation is published by vercel
2025-03-11 12:06:06 +01:00
renovate[bot]
b27675ac22
chore(deps): update akhileshns/heroku-deploy action to v3.14.15 (#9388)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[akhileshns/heroku-deploy](https://redirect.github.com/akhileshns/heroku-deploy)
| action | minor | `v3.13.15` -> `v3.14.15` |

---

### Release Notes

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

###
[`v3.14.15`](https://redirect.github.com/AkhileshNS/heroku-deploy/releases/tag/v3.14.15)

[Compare
Source](https://redirect.github.com/akhileshns/heroku-deploy/compare/v3.13.15...v3.14.15)

- Fix stack issue (courtesy of
[@&#8203;sstepanchuk](https://redirect.github.com/sstepanchuk))
- Add dotenv dependency (courtesy of
[@&#8203;sstepanchuk](https://redirect.github.com/sstepanchuk))
- Update documentation to more precisely mention that the heroku cli
must be installed

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, 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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 19:05:50 +00:00
Gastón Fournier
8045fbe13a
chore: use gitcliff changelog for release (#9289)
This is to reuse the gitcliff output for the release
2025-02-11 15:56:40 +01:00
Gastón Fournier
e587b2c892
chore: remove concurrency block (#9286)
This is to unblock the release
![Screenshot from 2025-02-11
11-20-56](https://github.com/user-attachments/assets/99122eaa-850b-4d7b-bd67-ae3604edd24f)
2025-02-11 10:52:27 +00:00
Gastón Fournier
4786bdca21
chore: ability to run FE tests manually (#9249) 2025-02-07 09:27:00 +01:00
Mateusz Kwasniewski
f9e0c27bf1
fix: heroku reset for tests (#9197) 2025-02-03 16:45:25 +01:00
Gastón Fournier
bbbc85245c
chore: switch notify enterprise to main (#9119) 2025-01-20 10:36:21 +00:00
Gastón Fournier
1d40868b95
chore: move the bricks (#9114)
Moved to bricks-software
2025-01-20 11:26:32 +01:00
Christopher Kolstad
221334dbc1
fix(ci): setup concurrency limitation and rename session to reflect unleash (not edge) 2025-01-16 10:34:14 +01:00
Christopher Kolstad
8463d763c9
fix(ci): setup id-token permissions 2025-01-16 10:31:19 +01:00
Christopher Kolstad
533730c18c
task: added push to public.ecr (#9105)
Fixes #6530
2025-01-16 10:29:07 +01:00
Gastón Fournier
682f7e0b9f
chore: remove alpine reference as a suffix in image name (#9009) 2024-12-20 09:45:22 +01:00
Christopher Kolstad
1e1761e5e7
chore: Use 20.18.1 instead of 20.14 as our node base image (#9004)
We already have 20.18.1 set as the default in our Dockerfile, but we
override it with an arg from the workflow, so this brings the workflow
up to date with what we use as our default.
2024-12-19 15:10:23 +01:00
Gastón Fournier
59828cf5ac
feat: enable docker version tag on main (#8979)
Since we're releasing from main now...
2024-12-13 14:24:22 +01:00
Tymoteusz Czech
de7b95a691
fix: e2e cypress create flag delay (#8968) 2024-12-12 13:43:01 +01:00
Fredrik Strand Oseberg
7c646bc523
Chore/increase client api test coverage (#8950)
Added more tests around specific plans. Also added snapshot as per our
conversation @gastonfournier, but I'm unsure how much value it will give
because it seems that the tests should already catch this using
respondWithValidation and the OpenAPI schema. The problem here is that
empty array is a valid state, so there were no reason for the schema to
break the tests.
2024-12-12 11:42:18 +01:00
Fredrik Strand Oseberg
dfcb196b20
feat: add core feature alert gh action (#8948)
Adds a GH action that notifies us that core features were changed. The
action listens on paths in the source code where our client api and
frontend api are located. If there is a change to these files, we add a
comment to the PR to review carefully and add principals and CTO as
reviewers.
2024-12-10 10:09:52 +01:00
Christopher Kolstad
c46ce85611
task: explicitly allows Artistic-2.0 license (#8694)
Due to our use of docusaurus and the openapi plugin we need to allow
Artistic-2.0, Having read the license, it allows for free use of the
licensed code, provided the license is included when distributing, but
does not require a relicensing of products using the licensed code.
2024-11-08 08:25:44 +00:00
Christopher Kolstad
844d3c26fc
chore: allow CC-BY-4.0 (#8570)
CC BY 4.0 This license lets others distribute, remix, tweak, and build
upon your work, even commercially, as long as they credit you for the
original creation. This is the most accommodating of licenses offered.
Recommended for maximum dissemination and use of licensed material.

- Sounds compatible with us
2024-10-29 10:02:32 +01:00
Gastón Fournier
7ac33af148
chore: add 0BSD license (#8506)
Seems to be permissive enough and close to ISC:
https://opensource.org/license/0bsd
2024-10-23 09:28:55 +02:00
Christopher Kolstad
6d51213f55
chore: enables github docker cache (#8187)
So, since we updated to build-push-action@v6 we're now getting a nice
summary of the build on the summary page of the action. It pointed out
that we're caching 0% of our docker build. Since we probably change our
own code more often than we change our dependencies, sharing the initial
yarn install step between builds from cache seems to be a good idea.
2024-09-19 14:55:32 +02:00
Gautam Korlam
77ea596c78
[Gitar] Apply gitar duet on top of gitar bot PRs (#8141)
<!-- 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

When working with automated changes made by the @gitar-bot , custom
automated changes may be necessary. For example,

- Running lint auto-fixes
- Executing code generation
- Updating test snapshot files
- Running internal tools

Gitar recommends these in a separate CI pipeline. We call this [Gitar
Duet](https://gitar.co/docs/more/custom-automated-changes/), where
custom tools run alongside Gitar’s automated changes.

### Important files
github ci workflow files

## Discussion points
Feel free to update the workflow to modify the autofix steps
2024-09-16 19:35:06 +03:00
Gastón Fournier
acecffd93f
fix: force languages in cypress browser for tests (#8049)
To fix this we had to create a free trial account on cypress and enable
the recording of the test. That way we found out the issue was with a
locale:
![image
(38)](https://github.com/user-attachments/assets/db2fad23-6fec-47c0-8c6f-a93f3e4e4c4c)

Probably, this works well locally because our local machines do have a
default locale, but probably we don't have one when running in CI, and
millify library is causing the tests to fail specifically at this line:
363911c4a1/frontend/src/component/common/AvatarGroup/AvatarGroup.tsx (L89)
(validated
[here](https://github.com/Unleash/unleash/pull/8040/files#diff-afc857890da2221bd34feed0ff45dd7745ff32fb0b27055214cbe69896d5311dL89)).

Unfortunately, upgrading millify didn't help, but downgrading to v5
(which doesn't support locales), solve the issue at the cost of not
having the up-to-date library:
https://github.com/Unleash/unleash/pull/8048

I believe the issue is related to this locale `c` reported here:
https://github.com/cypress-io/cypress/issues/7890#issuecomment-2105991364
because only after overriding the languages this worked
2024-09-03 10:06:58 +00:00
Gastón Fournier
52e3ff03d2
chore: strip +main from package version (#8017)
This is not needed anymore as we are not publishing to npm from main.
2024-08-30 09:50:32 +02:00
Gastón Fournier
1367996305
fix: when running on main we need to use latest=auto (#7969)
This fixes this error:
https://github.com/Unleash/unleash/actions/runs/10505976248/job/29104652388

![image](https://github.com/user-attachments/assets/14477e20-1185-4aab-8a25-b88fdb0ae181)
2024-08-22 12:45:18 +02:00
Gastón Fournier
6a0dd6fced
fix: when backporting we don't want to push latest docker tag (#7961)
Backporting fixes to old versions usually pushes the docker latest tag
as well. We only want to do this if the version we're releasing is the
latest
2024-08-22 12:01:34 +02:00
Gard Rimestad
4c2d768539
chore: remove docker build & push on PRs (#7805)
We did this to validate that yarn 4 works and that has now been used for
a while. Lets stop pushing all PRs now
2024-08-08 10:55:22 +02:00