Skip to content

Commit

Permalink
Merge pull request #2 from nyaruka/main
Browse files Browse the repository at this point in the history
update from upstream
  • Loading branch information
tybritten authored Aug 1, 2022
2 parents e81ceb1 + 88dd610 commit 457bba7
Show file tree
Hide file tree
Showing 24 changed files with 1,391 additions and 1,319 deletions.
80 changes: 41 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,62 @@
name: CI
on: [push, pull_request]
env:
go-version: "1.18.x"
jobs:
test:
name: Test
strategy:
matrix:
pg-version: ['11', '12']
pg-version: ["12", "13"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Checkout code
uses: actions/checkout@v1

- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: ${{ matrix.pg-version }}
postgresql db: archiver_test
postgresql user: temba
postgresql password: temba
- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: ${{ matrix.pg-version }}
postgresql db: archiver_test
postgresql user: temba
postgresql password: temba

- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.15.x
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.go-version }}

- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
env:
ARCHIVER_AWS_ACCESS_KEY_ID: ${{ secrets.ARCHIVER_AWS_ACCESS_KEY_ID }}
ARCHIVER_AWS_SECRET_ACCESS_KEY: ${{ secrets.ARCHIVER_AWS_SECRET_ACCESS_KEY }}
- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
env:
ARCHIVER_AWS_ACCESS_KEY_ID: ${{ secrets.ARCHIVER_AWS_ACCESS_KEY_ID }}
ARCHIVER_AWS_SECRET_ACCESS_KEY: ${{ secrets.ARCHIVER_AWS_SECRET_ACCESS_KEY }}

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

release:
name: Release
needs: [test]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Checkout code
uses: actions/checkout@v1

- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.15.x
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.go-version }}

- name: Publish release
uses: goreleaser/goreleaser-action@v1
with:
version: v0.147.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
fail_ci_if_error: true
- name: Publish release
uses: goreleaser/goreleaser-action@v1
with:
version: v0.147.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
fail_ci_if_error: true
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Binaries for programs and plugins
rp-archiver
*.exe
*.exe~
*.dll
Expand All @@ -17,4 +16,5 @@ dist/

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
fabric
deploy
fabfile.py
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,95 @@
v7.4.0
----------
* Include rollups in monthlies failed metric as well as monthlies created from scratch

v7.3.7
----------
* Change query used to update rollup_id on dailies
* Remove temporary logging

v7.3.6
----------
* Add temporary additional logging
* Replace ExitOnCompletion config option with Once which makes it run once and exit

v7.3.5
----------
* Improve librato analytics and add tests

v7.3.4
----------
* Rework stats reporting
* Log version at startup

v7.3.3
----------
* Fix parsing start times after midday

v7.3.2
----------
* Don't log entire run JSON on error, just UUID
* Make archival happen at configured start time even on first pass

v7.3.1
----------
* Add librato analytics for time elapsed and number of orgs, msgs and runs

v7.3.0
----------
* Update to go 1.18 and upgrade dependencies
* Add support for Msg.visibility=X (deleted by sender)
* Add arm64 as a build target

v7.2.0
----------
* Tweak README

v7.1.6
----------
* Stop setting delete_reason on runs before deletion

v7.1.5
----------
* Stop updating msgs_msg.delete_reason which is no longer needed

v7.1.4
----------
* Record flow on msgs

v7.1.3
----------
* Remove deletion of recent runs as these are no longer created

v7.1.2
----------
* Use run status instead of is_active and exit_type
* No longer include events in run archives

v7.1.1
----------
* Remove references to flowrun.parent_id which is no longer set by mailroom

v7.1.0
----------
* Remove msgs_msg.response_to_id

v7.0.0
----------
* Test on PG12 and 13

v6.5.0
----------
* Limit paths in archived runs to first 500 steps
* Use go 1.17

v6.4.0
----------
* 6.4.0 Release Candidate

v6.3.0
----------
* Don't try to load org languages

v6.2.0
----------
* Bump CI testing to PG 11 and 12
Expand Down
Loading

0 comments on commit 457bba7

Please sign in to comment.