Commit Graph

465 Commits

Author SHA1 Message Date
Simon Larsen
17c1862eac
```text
refactor: Update docker-compose command in test.e2e.yaml

This commit updates the docker-compose command in the test.e2e.yaml file. The previous command included the `e2e` service name twice, which is unnecessary. The updated command removes the duplicate service name, improving the clarity and efficiency of the script.
2024-06-14 18:34:11 +01:00
Simon Larsen
37b1846363
fix job dependencies 2024-06-14 18:21:51 +01:00
Simon Larsen
0d97f0447a
refactor: Improve error handling in API class
This commit refactors the API class in API.ts to improve error handling. The `getFriendlyErrorMessage` method now includes additional error cases and returns more specific error messages for network errors, timeouts, request aborts, cancellations, connection issues, and SSL certificate expiration. This change enhances the user experience by providing clearer and more informative error messages.
2024-06-14 10:57:19 +01:00
Simon Larsen
3e2e581e52
```text
refactor: Update artifact upload paths in release and test workflows

The artifact upload paths in the release.yml, test-release.yaml, and test.e2e.yaml workflows have been updated to include the entire E2E directory instead of specific subdirectories. This change simplifies the configuration and ensures that all necessary files are included in the artifacts.
2024-06-13 18:39:02 +01:00
Simon Larsen
a4a9e45fe0
refactor: Update Dockerfile and build steps for Copilot service
This code change updates the Dockerfile and build steps for the Copilot service. It adds a new workflow job, `docker-build-copilot`, which builds the Docker image for the Copilot service. The job includes steps to checkout the code, preinstall dependencies, and build the Docker image using the specified Dockerfile. This change ensures that the Copilot service is built and deployed correctly in the CI/CD pipeline.
2024-06-10 17:19:25 +01:00
Simon Larsen
87c16d7bc3
refactor: Update needs array in test-e2e-release-saas and test-e2e-release-self-hosted jobs
This code change updates the needs array in the test-e2e-release-saas and test-e2e-release-self-hosted jobs in the release.yml file. The nginx-docker-image-deploy job has been added to the needs array to ensure that it is executed before these jobs. This change ensures that the necessary dependencies are met for the successful execution of the test-e2e-release-saas and test-e2e-release-self-hosted jobs.
2024-06-09 21:47:31 +01:00
Simon Larsen
05c090445a
change job names 2024-06-09 19:29:59 +01:00
Simon Larsen
597aeb74f4
add e2e to test release 2024-06-09 19:29:23 +01:00
Simon Larsen
b7191a9c2e
update github e2e jobs 2024-06-09 19:25:34 +01:00
Simon Larsen
4c2dfb0f92
refactor: Add CodeRepository model, service, and permissions
This code change adds the CodeRepository model, service, and permissions to the project. It includes the following modifications:

- Added CodeRepository model to the Models/Index.ts file.
- Added CodeRepositoryService to the Services/Index.ts file.
- Created CodeRepositoryService.ts file with the necessary implementation.
- Updated Permission enum in the Permission.ts file to include CreateCodeRepository, DeleteCodeRepository, EditCodeRepository, and ReadCodeRepository permissions.

These changes enable the project to manage code repositories and define the necessary permissions for them.
2024-06-09 15:03:56 +01:00
Simon Larsen
a24bf077ce
refactor: Improve error message in endpoint-status.sh
This code change updates the endpoint-status.sh script to improve the error message when the endpoint returns an HTTP status other than 200. The previous message mentioned that it usually takes a few minutes for the app to boot, which is not accurate. The updated message removes this misleading information and provides a more accurate description of the retry behavior.
2024-06-09 14:49:48 +01:00
Simon Larsen
2d82f50789
refactor: Enable cleanup and e2e cron jobs for development purposes 2024-06-09 14:39:14 +01:00
Simon Larsen
99dcee80cd
refactor: Add support for Go language in CodeQL analysis workflow 2024-06-08 14:54:28 +01:00
Simon Larsen
c418dc41dd
refactor: Add TypeScript support to CodeQL analysis workflow
This code change updates the CodeQL analysis workflow in the .github/workflows/codeql-analysis.yml file. It adds TypeScript as a supported language for CodeQL analysis, in addition to JavaScript. This ensures that the codebase can be thoroughly analyzed for potential security vulnerabilities and bugs in both JavaScript and TypeScript code.
2024-06-08 14:54:02 +01:00
Simon Larsen
cfc45efadf
chore: Update Docker login action to v2.2.0 2024-06-04 21:31:15 +01:00
Simon Larsen
3a277db0d5
chore: Update Docker login action to v2.2.0
This code change updates the Docker login action to version 2.2.0 in the build.yml file. The new version provides improved functionality and security for logging in to Docker Hub. This chore ensures that the latest stable version of the Docker login action is used in the build process.
2024-06-04 21:29:22 +01:00
Simon Larsen
bc687bdcdd
add tag name 2024-06-03 13:27:08 +01:00
Simon Larsen
bc205a8686
fix infra release 2024-06-03 13:09:48 +01:00
Simon Larsen
1053f52b2b
Merge branch 'release' 2024-06-01 17:28:50 +01:00
Simon Larsen
4ef8a8d0f9
refactor: Update Go version and use specific ref in release workflow
This code change updates the Go version used in the release workflow and modifies the "Checkout" step to use a specific ref instead of fetching the entire history. By specifying the ref, the workflow will only fetch the necessary code, reducing the time and resources required for the checkout process.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 17:27:18 +01:00
Simon Larsen
8d183ceee6
refactor: Update checkout step in release workflow
This code change updates the checkout step in the release workflow to use the `ref` parameter instead of `fetch-depth`. This ensures that the correct branch or tag is checked out during the workflow execution.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 17:26:52 +01:00
Simon Larsen
900f76f8c8
chore: Update GoReleaser command in release workflow to include GORELEASER_CURRENT_TAG environment variable 2024-05-14 16:27:13 +01:00
Simon Larsen
20c03c5fd9
chore: Update GoReleaser to version 1 and run release command for InfrastructureAgent 2024-05-14 15:59:52 +01:00
Simon Larsen
6aac72a226
chore: Update dependencies and job dependencies for infrastructure-agent-deploy 2024-05-14 12:56:43 +01:00
Simon Larsen
d1424840d8
chore: Update infrastructure-agent-deploy job dependency to github-release 2024-05-14 12:55:32 +01:00
Simon Larsen
d29991117a
chore: Update actions/checkout and actions/setup-go versions 2024-05-14 11:46:13 +01:00
Simon Larsen
8dac1a845a
chore: Refactor package names in InfrastructureAgent code files 2024-05-13 16:48:47 +01:00
Simon Larsen
da26400aa7
chore: Refactor package names in InfrastructureAgent code files 2024-05-13 14:00:48 +01:00
Simon Larsen
58e817cecd
chore: Update workflow to use Go instead of Node.js for InfrastructureAgent 2024-05-13 09:41:39 +01:00
Simon Larsen
96d3243205
Refactor test-e2e job in release.yml workflow 2024-05-01 17:22:12 +01:00
Simon Larsen
1be827741e
Update E2E Config.ts to use E2E_TEST_STATUS_PAGE_URL instead of E2E_TEST_REGISTERED_USER_PASSWORD 2024-04-27 16:55:22 +01:00
Simon Larsen
d312c2b0cf
Update E2E workflow to include failed webhook URL 2024-04-26 22:50:20 +01:00
Simon Larsen
fe40c5bb8d
Add test results artifact upload to E2E workflow 2024-04-26 22:04:12 +01:00
Simon Larsen
74273e6e9b
Refactor E2E workflow to use environment variables from config.env in test.e2e.yaml 2024-04-26 18:01:15 +01:00
Simon Larsen
9eec9042bd
Refactor E2E workflow to use npm run prerun command before running docker-compose in test.e2e.yaml 2024-04-26 16:40:02 +01:00
Simon Larsen
f22ae5844d
Refactor E2E workflow to use status-check.sh script for server availability check 2024-04-26 14:45:01 +01:00
Simon Larsen
caf3377cee
Refactor E2E workflow to use parentheses for command grouping in docker-compose run step 2024-04-26 13:36:52 +01:00
Simon Larsen
f0e4d6bf71
Update E2E workflow to use --abort-on-container-exit flag in docker-compose command 2024-04-26 13:36:40 +01:00
Simon Larsen
f34e4a23d6
Update E2E workflow to use docker-compose for running E2E tests 2024-04-26 13:35:25 +01:00
Simon Larsen
0a8574678c
Update E2E workflow to wait for 60 minutes for server to be up 2024-04-26 10:54:55 +01:00
Simon Larsen
0fdf63ce0c
Add npm install command for Common directory in E2E workflow 2024-04-25 22:56:26 +01:00
Simon Larsen
1cf208387f
Add server readiness check before running E2E tests 2024-04-25 18:34:13 +01:00
Simon Larsen
ab42ca1ef9
Add test-e2e job to GitHub Actions workflow 2024-04-25 15:30:08 +01:00
Simon Larsen
910aa113b5
Add npm install step for Common directory 2024-04-25 15:22:52 +01:00
Simon Larsen
ef0dc5305a
Update test.e2e.yaml to free up disk space in GitHub Actions runner 2024-04-25 12:32:22 +01:00
Simon Larsen
73dc057c99
Update test.e2e.yaml and Config.ts files 2024-04-25 12:31:38 +01:00
Simon Larsen
7623fe7df4
Add Docker build step for E2E tests 2024-04-25 12:08:58 +01:00
Simon Larsen
da03636bd0
Add Docker build step for E2E tests 2024-04-25 12:01:49 +01:00
Simon Larsen
8acfb0f798
add e2e tests 2024-04-25 11:53:11 +01:00
Simon Larsen
35daff14d9
Update runs-on to ubuntu-latest in test.probe.yaml 2024-04-05 20:09:25 +01:00