Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a script for sending commits #259

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GeekaN2
Copy link
Member

@GeekaN2 GeekaN2 commented Aug 26, 2021

Added a script to make it a little easier to send comments to the collector. The first step towards cli

@@ -6,26 +6,32 @@ This worker is needed to save releases with commits or/and source-maps uploaded

**Current implementation supports only single Rabbit prefetch count (SIMULTANEOUS_TASKS=1)**

## Source maps delivery scheme
## Delivery scheme
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Delivery scheme
## Release delivery scheme

@@ -6,26 +6,32 @@ This worker is needed to save releases with commits or/and source-maps uploaded

**Current implementation supports only single Rabbit prefetch count (SIMULTANEOUS_TASKS=1)**

## Source maps delivery scheme
## Delivery scheme

1. User wants to deploy project
2. He runs deploy script on the server and it runs static builder, for example Webpack.
3. After Webpack finished his job, our [Webpack Plugin](https://github.com/codex-team/hawk.webpack.plugin) gets a source maps for new bundles and sends them to us.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add item about commits

```

4. Collector accepts file and give a task for ReleaseWorker for saving it to DB
5. ReleaseWorker saves it to DB.
4. Collector accepts files and give a task for ReleaseWorker for saving it to the database.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
4. Collector accepts files and give a task for ReleaseWorker for saving it to the database.
4. Collector accepts commits and source map files and give a task for ReleaseWorker for saving it to the database.

5. ReleaseWorker saves commits and source maps to the database.

## Script for sending comments
To make it easier to send commits, you can use a [shell script](./scripts/commits.sh) that will take the last few commits and send them to the collector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To make it easier to send commits, you can use a [shell script](./scripts/commits.sh) that will take the last few commits and send them to the collector
To make it easier to send commits, you can use a [shell script](./scripts/commits.sh) that will take the last few commits and send them to the collector

@@ -0,0 +1,92 @@
#!/bin/sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move it to the separate repository (hawk-release for example), because it is not related to workers.

@GeekaN2
Copy link
Member Author

GeekaN2 commented Dec 21, 2021

Closed in codex-team/hawk.releases#1

@GeekaN2 GeekaN2 closed this Dec 21, 2021
@neSpecc neSpecc reopened this Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants