forked from compdemocracy/polis
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from CivicTechTO/edge
sync with Edge
- Loading branch information
Showing
35 changed files
with
2,353 additions
and
1,194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,43 +6,57 @@ concurrency: | |
|
||
on: | ||
push: | ||
branches: [edge] | ||
paths-ignore: ["**.md"] | ||
branches: | ||
- edge | ||
paths-ignore: | ||
- "**.md" | ||
|
||
pull_request: | ||
paths-ignore: ["**.md"] | ||
paths-ignore: | ||
- "**.md" | ||
|
||
jobs: | ||
cypress-run: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build and Run Application | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: | | ||
docker-compose.yml | ||
docker-compose.test.yml | ||
compose-flags: "--env-file test.env" | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build and start Docker containers | ||
run: | | ||
docker compose -f docker-compose.yml -f docker-compose.test.yml --env-file test.env --profile postgres up -d --build | ||
- name: Check Application Health | ||
uses: jtalk/url-health-check-action@v3 | ||
- name: Health Check the Server http response | ||
uses: jtalk/url-health-check-action@v4 | ||
with: | ||
url: http://localhost/api/v3/testConnection | ||
max-attempts: 10 | ||
retry-delay: 10s | ||
|
||
- name: Dump Application Logs | ||
if: failure() | ||
run: | | ||
echo "Health check failed. Dumping Docker logs..." | ||
docker compose -f docker-compose.yml -f docker-compose.test.yml --env-file test.env logs | ||
- name: Cypress Run | ||
uses: cypress-io/github-action@v5 | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
config: baseUrl=http://localhost | ||
spec: cypress/e2e/!(third-party)/**/*.cy.js | ||
working-directory: e2e | ||
|
||
- name: Upload Cypress screenshots | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: e2e/cypress/screenshots | ||
|
||
- name: Upload Cypress videos | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: cypress-videos | ||
path: e2e/cypress/videos | ||
|
||
- name: Stop Docker containers | ||
if: always() | ||
run: docker compose -f docker-compose.yml -f docker-compose.test.yml --env-file test.env --profile postgres down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
## 1.0 | ||
|
||
## [unreleased] | ||
Landmark! | ||
|
||
### Changed | ||
- Improved docs for configuring comment translation. [`#319`][] | ||
After 12 years of research and development, we are making this our first versioned release of the Polis platform! | ||
|
||
This version signifies a turning point for the project, where we see the core methodology as stable, and wish to facilitate the growing need for coordination and transparency among an increasing number of partners, but also to free ourselves to continue innovating at the cutting edge of deliberative technology (e.g. [Opportunities and Risks](https://arxiv.org/abs/2306.11932) and [Coherent Mode](https://arxiv.org/abs/2211.12571)). | ||
|
||
From here on out, we'll be maintaining two main branches of the Polis software: | ||
* `stable`: points to the latest stable release of the software, after having passed QA assessment | ||
* `edge`: the most recent version of the software to have been merged in, and ready (pending QA) for merging into `stable` (can be assumed to have passed automated testing criteria) | ||
|
||
For now, the versioning scheme will look like: `major.minor[.patch]`. | ||
In general, updates will look like: | ||
|
||
* `patch`: bugfix; no intended behavior changed | ||
* `minor`: new features, without major changes to the underlying algorithm, or significant interface changes (includes new translations or significant translation updates) | ||
* `major`: significantly different default algorithmic behavior, participant interface, or other major new functionality | ||
|
||
In general minor version bumps will be preferred over major if features don't by default effect either the algorithm or participation interface. | ||
This allows us to build under feature flags before official release, giving us an opportunity to launch quickly, perform user testing, and iterate between major version releases as features solidify. | ||
|
||
Changes which have been merged to `edge` but are not yet versioned on `stable` can be listed at the "edge changes" section at the end of this living document as they are merged in after passing automated testing. | ||
|
||
|
||
## edge changes | ||
|
||
* ... | ||
|
||
### Added | ||
- Added support for configuring comment translation credentials via base64-encoded string, stored in `GOOGLE_CREDENTIALS_BASE64` envvar. [`#319`][] | ||
|
||
[`#319`]: https://github.com/pol-is/polisServer/issues/319 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0 |
Oops, something went wrong.