Commit Graph

41 Commits

Author SHA1 Message Date
Valera Melnikov
92c72ee20e
chore: update node version and appropriate git workflows (#31486)
## Description
- update node version and appropriate git workflow
- added the path to webpack cache folder, this should speed up bundle
creation about a minute

[Test, build and push Docker
Image](https://github.com/appsmithorg/appsmith/actions/runs/8421752151)
[Build Client, Server & Run only
Cypress](https://github.com/appsmithorg/appsmith/actions/runs/8421752151)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Chores**
- Updated actions/cache and actions/setup-node to v4 across various
workflows for improved caching and Node.js setup.
- Modified the `yarn install` command to use `--immutable` flag,
enhancing dependency management.
- **Documentation**
- Updated comments within workflows to include cautionary and important
notes, ensuring better clarity.
- **Refactor**
	- Adjusted caching paths and keys for more efficient caching behavior.
- Changed Node.js installation to version 20.11.1 in Dockerfile,
aligning with the latest version for better performance and security.
- **Tests**
- Modified assertion in `getCurrentLocationSaga` test to check for the
presence of a property, improving test accuracy.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Aman Agarwal <aman@appsmith.com>
2024-03-26 14:12:11 +03:00
Shrikant Sharat Kandula
d25b94fe50
chore: Remove unneeded exposing of 9001 port (#30499)
We're already using `/supervisor` for this, and don't expect anyone to
hit the port directly.
2024-01-22 15:06:08 +05:30
Arpit Mohan
2650ea161d
ci: Updating actions/checkout to v4 and defaulting to fetch-depth 1 instead of 0 (#29281)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated GitHub Actions workflows to use `actions/checkout@v4` for
improved performance and reliability.
- Removed `fetch-depth` parameter to simplify checkout steps across
various workflows.
  - Standardized quote usage for consistency in workflow files.

- **Documentation**
- Adjusted formatting and descriptions in workflow files for better
clarity and readability.

- **Refactor**
- Aligned multiple workflow files to follow a consistent structure and
naming convention.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

fetch-depth 0 causes the Github workflow to checkout the entire Git
history. This is not required. We only need to check out the head of the
commit. By default, actions/checkout has fetch-depth=1, hence removing
it from the workflow completely for simplicity.
2023-12-05 13:44:43 +05:30
Valera Melnikov
826d58f813
chore:update node version to v18 (#26358)
## Description
Update node version

---------

Co-authored-by: Valera Melnikov <melnikov.vv@greendatasoft.ru>
2023-08-15 18:56:04 +05:30
Satish Gandham
40af2195df
ci: Update perf-test.yml (#23781) 2023-05-26 21:26:30 +05:30
Valera Melnikov
9f607d250d
chore: move local dependency to packages (#23395)
## Description
1. Move everything related to client from app folder to client folder
(`.yarn`, `yarn.lock`, package.json, .gitignore)
2. Move `ast` and `rst` to client packages
3. Fix running scripts in packages
4. Add running unit tests in packages in CI

TODO: It is necessary to consider enabling the `nmHoistingLimits:
workspaces` option, since now all packages are hoisted to the root,
there may be issues with dependencies in workspaces. Also, there is a
possibility of implicit use of packages.

https://yarnpkg.com/configuration/yarnrc#nmHoistingLimits

#### PR fixes following issue(s)
Fixes #23333

#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing

#### How Has This Been Tested?
- [x] Manual
- [x] Jest
- [x] Cypress

## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag

Co-authored-by: Valera Melnikov <melnikov.vv@greendatasoft.ru>
2023-05-22 15:55:46 +03:00
Satish Gandham
83538ad74d
feat: Bundle optimization and first load improvements (#21667)
Co-authored-by: Ivan Akulov <mail@iamakulov.com>
Co-authored-by: Satish Gandham <hello@satishgandham.com>
Co-authored-by: Ivan Akulov <iamakulov@outlook.com>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: somangshu <somangshu.goswami1508@gmail.com>
2023-05-11 10:56:03 +05:30
Saroj
1f8e7d25ca
ci: Fixing the working directory in perf-test.yml (#21341)
## Description
- Fixing the working directory in perf-test.yml

## Type of change
- perf-test.yml


## How Has This Been Tested?
- Manual

## Checklist:
### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-03-10 23:49:15 +05:30
Saroj
ccd1050bc1
ci: Updated the path to download the artifact in perf-test.yml (#21339)
## Description
- Updated the path to download the artifact in perf-test.yml

## Type of change
- perf-test.yml


## How Has This Been Tested?
- Manual

## Checklist:
### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-03-10 20:45:59 +05:30
Saroj
9b59ff469e
ci: Added steps to use the pre built docker image instead of building a new one (#21318)
## Description
- Added steps to use the pre built docker image instead of building a
new one in perf-test.yml

## Type of change
- perf-test.yml

## How Has This Been Tested?
- Manual

## Checklist:
### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-03-10 16:26:20 +05:30
Satish Gandham
6cc326ca52
ci: Disable telemetry in perf tests (#21256)
Disable telemetry in perf tests.
2023-03-08 11:56:31 +05:30
Rhitottam
bc6c40a50c
ci: Fix/debug failed post perf tests (#20625) 2023-03-01 15:32:54 +05:30
Shrikant Sharat Kandula
94caa07a38 chore: Remove obsolete AuditLog env variables in CI 2023-02-26 06:20:27 +05:30
Goutham Pratapa
568544b5a3
ci: fix artifact names across the ci (#20586)
Fix: artifact names across CI
2023-02-13 14:45:02 +05:30
Aishwarya-U-R
0d8a6e10f0
test: TED support for GITEA (#20456)
## Description

- This PR maps port 22 to 2222 (revert)

## Type of change

- Script fix (non-breaking change which fixes an issue)
2023-02-07 23:11:00 +05:30
Aishwarya-U-R
309a16d41c
test: TED support for GITEA (#20451)
## Description
- This PR adds the 3000 port mapping for the TED GITEA support for the
cypress tests


## Type of change

- Script update

## Checklist:
### QA activity:
- [X] Test plan has been peer reviewed by QA
- [X] Cypress test cases have been added and approved by either SDET or
manual QA
2023-02-07 21:44:07 +05:30
Rhitottam
7c1ddfb17c
ci: run fat container docker inside perf tests and update setup-perf-test workflow to use localhost for accessing dev environment (#20280) 2023-02-07 15:56:41 +05:30
Rhitottam
17711b5d81
Fix: fix client build (#20144) 2023-01-27 15:26:50 +05:30
Rhitottam
d5c5d1ff16
Fix: Fix perf tests workflow (#20137) 2023-01-27 12:22:03 +05:30
Rhitottam
4532d0c962
Fix: add back setup of ui environment in setup-test-ci workflow (#20125)
## Description

> Add back setup of ui nginx environment using docker while setting up
tests

Fixes # [(issue)](https://github.com/appsmithorg/appsmith/issues/20124)
> if no issue exists, please create an issue and ask the maintainers
about this first


## Type of change

- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?
- Manual


## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-01-27 10:48:01 +05:30
Satish Gandham
c3fa494d4a
ci: Refactor test-build-docker workflow to re use perf-test code (#19989)
Co-authored-by: Satish Gandham <hello@satishgandham.com>
2023-01-23 17:05:42 +05:30
Satish Gandham
f67828678e
ci: Add java setup step to perf-test workflow (#19471)
With the latest build, we’ve upgraded to Java 17. By default, Ubuntu ships with Java 11.

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2023-01-04 11:56:53 +05:30
Satish Gandham
42a7c40c37
ci: Reactor perf tests checkout step to checkout the code correctly. (#19267)
Earlier code wasn't checked out correctly when test-build-docker workflow ran, this PR adds conditional checkout.
2022-12-28 12:51:08 +05:30
Satish Gandham
d0044fedb9
ci: Add perf tests back (#19184)
This PR adds the perf tests back, but still not a blocking check.

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-12-23 19:01:03 +05:30
Goutham Pratapa
d452b2452c
ci: Migrate runners from buildjet to github (#19066)
Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2022-12-20 16:32:22 +05:30
Hetu Nandu
c5c8734dc1
chore: Update github actions to remove deprecation warnings (#18619) 2022-12-19 13:04:43 +05:30
Satish Gandham
bc2b60974d
ci: Fix perf tests failure (#18926)
* Fix perf test failure due to a wrong step added earlier

* Remove all the steps added to make perf tests work on EE

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-12-13 19:29:51 +05:30
Satish Gandham
b5e8fc3be8
ci: Fix perf test failure due to a wrong step added earlier (#18918)
Fix perf test failure due to a wrong step added earlier

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-12-13 15:06:09 +05:30
Anagh Hegde
77a225f4dd
ci: revert Add replicate set to the mongodb url for transaction PR (#18890)
Revert "ci: Add replicate set to the mongodb url for transaction PR (#18873)"

This reverts commit bc8022caf2.
2022-12-12 18:57:20 +05:30
Anagh Hegde
bc8022caf2
ci: Add replicate set to the mongodb url for transaction PR (#18873) 2022-12-12 16:28:00 +05:30
Satish Gandham
03703ff044
ci: Ship source maps + fix perf test failures on EE (#18700)
* - Add missing env variables to fix perf tests failures in EE

* - Delete source maps on CI only for EE

* - Add the additional steps that might be required for running perf tests on EE

* Update if condition

* Update if condition

* Switch to bash from using sh in build.sh

* Check if the server started later

* Update the check to see if the server has started

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-12-09 18:40:59 +05:30
Parthvi
bc7659d53a
test: Add dummy users in Cypress test suite (#18675) 2022-12-06 11:21:54 +05:30
Satish Gandham
108af3a076
ci: Setup ted for perf tests (#18439)
* Setup ted for perf tests

* Update perf-test.yml

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-11-25 10:15:31 +05:30
Satish Gandham
65d9633c02
ci: Fix typos (#17945)
Fix typos

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-10-28 18:05:17 +05:30
Satish Gandham
6ad782c242
ci: Add S3 credentials to environment and create run meta record at the time of checkout (#17917)
* - Add S3 credentials to environment
- Change the workflow name
- Create performance run meta data record at the begining.

* Fix a typo

* Fix a typo

* Store DB credentials as plain values instead of JSON

* Fix SQL insert query

* Add missing secrets

* Continue even if the meta creation fails

* Fix SQL insert command

* Rename workflow

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-10-28 16:32:38 +05:30
Satish Gandham
8002bc204a
ci: Add a /command to run only perf tests (#17479)
* Add option to run only perf tests on github

* Add new line at the end of the file

* - Run the artifacts step even on failure
- Add link to the perf run details
- Remove the perf comment on the PR

Co-authored-by: Satish Gandham <hello@satishgandham.com>
2022-10-12 15:11:19 +05:30
Arpit Mohan
7580eb9990
ci: Fixing the RTS build workflow (#16748)
## Description

The problem with the RTS workflow after the induction of AST parsing was that while copying the `node_modules`, Ubuntu doesn't follow the symlink and copy the content. It simply copies the symlink as is. This causes issues for RTS service to start.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

- Personal repository

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
2022-09-14 14:24:20 +05:30
Arpit Mohan
01265b7bbd ci: Correcting the env variables for perf-test workflow 2022-09-12 21:28:23 +05:30
Arpit Mohan
655a5a668d ci: Fixing the condition check for server running in ui-test and perf-test steps 2022-09-09 14:59:32 +05:30
Arpit Mohan
c0e1a6202f
ci: Fixing the package step for test-build-docker workflow (#16661)
## Description

The depot docker step wasn't initialized. This was causing Docker builds to fail.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

- Relying on CI

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
2022-09-09 11:47:34 +05:30
Arpit Mohan
697bdecaa5
ci: Modularizing the Github actions workflow for maintainability (#16505) 2022-09-09 01:08:55 +05:30