From 08deb3d6b31cb1681dcf98e703fc92ece7261107 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Mon, 1 Apr 2024 13:24:06 +0200 Subject: [PATCH] release: 0.5.0b2 --- docs/contribute/changelogs/0.5.0b2.rst | 285 +++++++++++++++++++++++++ docs/contribute/changelogs/index.rst | 1 + docs/contribute/release.rst | 76 ++++--- harp/__init__.py | 2 +- misc/helm/charts/harp-proxy/Chart.yaml | 2 +- pyproject.toml | 2 +- 6 files changed, 325 insertions(+), 43 deletions(-) create mode 100644 docs/contribute/changelogs/0.5.0b2.rst diff --git a/docs/contribute/changelogs/0.5.0b2.rst b/docs/contribute/changelogs/0.5.0b2.rst new file mode 100644 index 00000000..a3fd1cd4 --- /dev/null +++ b/docs/contribute/changelogs/0.5.0b2.rst @@ -0,0 +1,285 @@ +Version 0.5.0b2 (2024-04-01) +============================ + +* chore: cleanup and update dependencies (Romain Dorgueil) +* chore: update dependencies (Romain Dorgueil) +* docs: refactoring (Romain Dorgueil) +* docs: update readme (Romain Dorgueil) +* docs: update playwright install (Romain Dorgueil) +* chore(deps-dev): bump pytest from 7.4.4 to 8.1.1 (dependabot[bot]) +* chore(deps-dev): bump respx from 0.20.2 to 0.21.1 (dependabot[bot]) +* chore(deps): bump orjson from 3.9.15 to 3.10.0 (dependabot[bot]) +* chore(deps-dev): bump pre-commit from 3.6.2 to 3.7.0 (dependabot[bot]) +* update docs (Arthur Degonde) +* feat: mean apdex cannot be none (Romain Dorgueil) +* feat: readme warning (Romain Dorgueil) +* feat: early access label (Romain Dorgueil) +* feat: fix empty statistics (Romain Dorgueil) +* feat: minor fixes and cleanup (Romain Dorgueil) +* remove unused import for topology (Arthur Degonde) +* update snapshots (Arthur Degonde) +* hide topology tab in system (Arthur Degonde) +* test: update snapshots (Arthur Degonde) +* feat: handle images (Arthur Degonde) +* chore(deps-dev): bump sphinx-autobuild from 2021.3.14 to 2024.2.4 (dependabot[bot]) +* chore(deps-dev): bump furo from 2023.9.10 to 2024.1.29 (dependabot[bot]) +* chore(deps-dev): bump black from 23.12.1 to 24.3.0 (dependabot[bot]) +* chore(deps-dev): bump cryptography from 41.0.7 to 42.0.5 (dependabot[bot]) +* feat: cleaning up (Romain Dorgueil) +* feat: implements dashboard overview and apdex computations (Romain Dorgueil) +* feat: safer search feature (Arthur Degonde) +* chore(deps): bump hishel from 0.0.21 to 0.0.25 (dependabot[bot]) +* feat: handle large body with load all button (Arthur Degonde) +* feat: janitor do not clean flagged transactions (Arthur Degonde) +* style: change searchbar (Arthur Degonde) +* fix: handle duplicate indexes (Arthur Degonde) +* force reset to False (Arthur Degonde) +* feat: indexes and query for mysql transactions search (Arthur Degonde) +* feat: fix and document all makefile tasks (make help is your friend) (Romain Dorgueil) +* chore(deps): bump httpx from 0.26.0 to 0.27.0 (dependabot[bot]) +* feat: fixes for mysql (Arthur Degonde) +* feat: update searchbar style (Arthur Degonde) +* feat: add search bar in transactions page (Arthur Degonde) +* feat: get transactions from text (Arthur Degonde) +* chore(deps): bump asgiref from 3.7.2 to 3.8.1 (dependabot[bot]) +* chore(deps): bump sqlalchemy-utils from 0.41.1 to 0.41.2 (dependabot[bot]) +* chore(deps): bump sqlalchemy from 2.0.28 to 2.0.29 (dependabot[bot]) +* chore(deps-dev): bump testcontainers from 3.7.1 to 4.2.0 (dependabot[bot]) +* rename pnpm commands for ui (Arthur Degonde) +* fix types and colors (Arthur Degonde) +* adapt code for frontend into dashboard app (Arthur Degonde) +* feat: add tests to janitor worker, refactor storage a bit (Romain Dorgueil) +* chore(deps-dev): bump msw from 2.2.9 to 2.2.11 in /frontend (dependabot[bot]) +* move frontend into dashboard app (Arthur Degonde) +* delete mkui from vendors (Arthur Degonde) +* move mkui to frontend/src/ui (Arthur Degonde) +* feat: uniform behaviour for orphans (Romain Dorgueil) +* feat: on delete cascade on many things (Romain Dorgueil) +* feat: fix created_at definition problem (Romain Dorgueil) +* feat: adds orphan blob count to janitor (Romain Dorgueil) +* feat: basic implementation of a background task in janitor app that counts entities (Romain Dorgueil) +* chore(deps): bump @sentry/browser from 7.107.0 to 7.108.0 in /frontend (dependabot[bot]) +* feat: fix ci version (Romain Dorgueil) +* feat: cleanup after ui changes, refactoring, corner sweeping (Romain Dorgueil) +* feat: basic handling of timeouts and other http errors (both in storage and frontend) (Romain Dorgueil) +* feat: expose user agent (Romain Dorgueil) +* feat: nowrap headers (Romain Dorgueil) +* feat: details close button (Romain Dorgueil) +* feat: transaction details ui (Romain Dorgueil) +* feat: refactor paginator for smaller components (Romain Dorgueil) +* feat: refactor title to add right floating things, move paginator there (Romain Dorgueil) +* feat: minor tuning in ui (Romain Dorgueil) +* feat: transaction list ui (Romain Dorgueil) +* feat: update deps (Romain Dorgueil) +* chore(deps-dev): bump typescript from 5.3.3 to 5.4.2 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @babel/preset-typescript in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @babel/preset-env in /vendors/mkui (dependabot[bot]) +* feat: better navigation, update tests and doc (Romain Dorgueil) +* feat: better navigation for transactions (ux) (Romain Dorgueil) +* feat: better request handling using multichainmaps (Romain Dorgueil) +* chore(deps-dev): bump postcss from 8.4.36 to 8.4.37 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump msw from 2.2.7 to 2.2.9 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/node from 20.11.28 to 20.11.30 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* feat: add host header (Romain Dorgueil) +* chore(deps-dev): bump postcss from 8.4.35 to 8.4.36 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @ladle/react from 4.0.2 to 4.0.3 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump vitest and @vitest/coverage-v8 in /vendors/mkui (dependabot[bot]) +* chore(deps): bump react-router-dom from 6.22.1 to 6.22.3 in /frontend (dependabot[bot]) +* chore(deps-dev): bump msw from 2.2.3 to 2.2.7 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/node from 20.11.27 to 20.11.28 in /frontend (dependabot[bot]) +* chore(deps): bump recharts from 2.12.2 to 2.12.3 in /frontend (dependabot[bot]) +* chore(deps): bump date-fns from 3.5.0 to 3.6.0 in /frontend (dependabot[bot]) +* feat: better api doc generation, bits of cleanup (Romain Dorgueil) +* feat: fix prettifycation of json blobs that are not json (Romain Dorgueil) +* feat: simplify and remove unused code (Romain Dorgueil) +* feat: fix ci (Romain Dorgueil) +* feat: tune makefile to help container tests (Romain Dorgueil) +* feat: fix static build (Romain Dorgueil) +* chore(deps-dev): bump vite from 5.1.4 to 5.1.6 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @types/react-dom in /vendors/mkui (dependabot[bot]) +* feat: http submodule refactoring with response (Romain Dorgueil) +* chore(deps-dev): bump eslint-plugin-react-refresh in /frontend (dependabot[bot]) +* chore(deps): bump @sentry/browser from 7.106.1 to 7.107.0 in /frontend (dependabot[bot]) +* chore(deps): bump react-error-boundary in /frontend (dependabot[bot]) +* chore(deps): bump date-fns from 3.3.1 to 3.5.0 in /frontend (dependabot[bot]) +* chore(deps-dev): bump vite-tsconfig-paths in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump autoprefixer in /vendors/mkui (dependabot[bot]) +* feat: refactor request, add --mock option (Romain Dorgueil) +* chore(deps): bump @emotion/react in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump eslint from 8.56.0 to 8.57.0 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/node from 20.11.20 to 20.11.27 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* chore(deps): bump @sentry/browser from 7.102.1 to 7.106.1 in /frontend (dependabot[bot]) +* chore(deps-dev): bump msw from 2.2.1 to 2.2.3 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @playwright/test in /vendors/mkui (dependabot[bot]) +* chore(deps): bump recharts from 2.12.0 to 2.12.2 in /frontend (dependabot[bot]) +* wip: http/asgi (Romain Dorgueil) +* chore(deps-dev): bump @babel/preset-env in /vendors/mkui (dependabot[bot]) +* misc: doc cosmetics and disable temporarily failing tests (Romain Dorgueil) +* chore(deps-dev): bump @vitest/coverage-v8 in /vendors/mkui (dependabot[bot]) +* feat: add --reset to cli, better error hierarchy, refactor telemetry to not work before it can (Romain Dorgueil) +* feat: server should not start if an application raised on bind/bound (Romain Dorgueil) +* feat: tuning license (Romain Dorgueil) +* feat: tuning license (Romain Dorgueil) +* feat: move license to rst for github (Romain Dorgueil) +* feat: tuning license before publication (Romain Dorgueil) +* feat: update readme (Romain Dorgueil) +* feat: fix test env, add better logging on startup, nicer fail if startu cannot complete (Romain Dorgueil) +* feat: skip tests that requires local dev extra installed if not available (Romain Dorgueil) +* feat: small cli doc (Romain Dorgueil) +* chore(deps-dev): bump vitest from 1.2.2 to 1.3.1 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump msw from 2.2.0 to 2.2.1 in /frontend (dependabot[bot]) +* chore(deps): bump react-router-dom from 6.22.0 to 6.22.1 in /frontend (dependabot[bot]) +* chore(deps-dev): bump vite from 5.1.1 to 5.1.4 in /vendors/mkui (dependabot[bot]) +* chore(deps): bump @sentry/browser from 7.101.0 to 7.102.1 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/node from 20.11.17 to 20.11.20 in /frontend (dependabot[bot]) +* doc: going back to symlinks (Arthur Degonde) +* test: fix ci (Arthur Degonde) +* docs: maxdepth for apps (Arthur Degonde) +* docs: fix documentation links disappearing (Arthur Degonde) +* docs: fix links to applications (Arthur Degonde) +* chore(deps-dev): bump typescript from 5.2.2 to 5.3.3 in /vendors/mkui (dependabot[bot]) +* docs: document e2e frontend testing (Arthur Degonde) +* build: update testing scripts (Arthur Degonde) +* docs: document testing for frontend (Arthur Degonde) +* test: test pages in browser (Arthur Degonde) +* test: add test for transactions and system dependencies (Arthur Degonde) +* chore(deps-dev): bump @typescript-eslint/eslint-plugin in /frontend (dependabot[bot]) +* chore(deps): bump @sentry/browser from 7.100.1 to 7.101.0 in /frontend (dependabot[bot]) +* build: remove playwright github action (Arthur Degonde) +* test: very basic overview page test with playwright (Arthur Degonde) +* test: set up playwright with msw (Arthur Degonde) +* test: install playwright (Arthur Degonde) +* chore(deps-dev): bump vite from 5.0.12 to 5.1.1 in /vendors/mkui (dependabot[bot]) +* test: snapshot transactions list page (Arthur Degonde) +* test: snapshot transactions detail page (Arthur Degonde) +* test: update system page snapshot (Arthur Degonde) +* test: snapshot transaction detail (Arthur Degonde) +* refactor: move transactiondetail smart component to a containers folder (Arthur Degonde) +* test: snapshot for filters sidebar (Arthur Degonde) +* test: unit tests systempage with act (Arthur Degonde) +* test: unit tests systempage (Arthur Degonde) +* test: take snapshot for system settings tab (Arthur Degonde) +* test: take snapshot for topology tab (Arthur Degonde) +* test: take snapshot for layout (Arthur Degonde) +* test: test systemdependenciestabpanel (Arthur Degonde) +* test: fix vite config (Arthur Degonde) +* wip: reproducible error (Arthur Degonde) +* test: create handler for system endpoint (Arthur Degonde) +* test: update snapshot and test config (Arthur Degonde) +* test: test transaction data table (Arthur Degonde) +* test: remove console logs from page test (Arthur Degonde) +* test: test page component (Arthur Degonde) +* test: adjust coverage config (Arthur Degonde) +* test: add unit tests coverage tool (Arthur Degonde) +* test: headers table unit test (Arthur Degonde) +* test: facets snapshots (Arthur Degonde) +* test: facets snapshots (Arthur Degonde) +* test: fix warnings (Arthur Degonde) +* test: response heading test (Arthur Degonde) +* test: request heading test (Arthur Degonde) +* test: transactions message panel test (Arthur Degonde) +* test: settings table unit test (Arthur Degonde) +* test: topology unit test (Arthur Degonde) +* test: rename test folder (Arthur Degonde) +* test: refactor and test overview page (Arthur Degonde) +* test: fix ts error (Arthur Degonde) +* chore(deps-dev): bump @types/node from 20.11.16 to 20.11.17 in /frontend (dependabot[bot]) +* chore(deps): bump recharts from 2.11.0 to 2.12.0 in /frontend (dependabot[bot]) +* test: mocking api server with msw (Arthur Degonde) +* test: update config and delete vitest config (Arthur Degonde) +* test: update config (Arthur Degonde) +* test: update config and other tests (Arthur Degonde) +* test: update other tests using vitest (Arthur Degonde) +* test: use and implement fist vitest tests (Arthur Degonde) +* test: update snapshots (Arthur Degonde) +* test: better jest config (Arthur Degonde) +* chore(deps): bump @sentry/browser from 7.100.0 to 7.100.1 in /frontend (dependabot[bot]) +* chore(deps-dev): bump postcss from 8.4.34 to 8.4.35 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @types/react-dom in /vendors/mkui (dependabot[bot]) +* test: snapshot for transactionchart (Arthur Degonde) +* test: first test using vitest (Arthur Degonde) +* refactor: clear split between dumb and smart components for overview (Arthur Degonde) +* build: ignore coverage folder in mkui (Arthur Degonde) +* test: snapshot for Tabs (Arthur Degonde) +* test: snapshot for Pane (Arthur Degonde) +* test: snapshot for Paginator (Arthur Degonde) +* test: snapshot for NavBar (Arthur Degonde) +* test: snapshot for FormWidgets (Arthur Degonde) +* test: snapshot for DataTable (Arthur Degonde) +* test: snapshot for ButtonGroup (Arthur Degonde) +* test: snapshot for Button (Arthur Degonde) +* test: snapshot for Badge (Arthur Degonde) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* chore(deps): bump @sentry/browser from 7.99.0 to 7.100.0 in /frontend (dependabot[bot]) +* chore(deps): bump match-sorter from 6.3.3 to 6.3.4 in /frontend (dependabot[bot]) +* build: update harp makefile (Arthur Degonde) +* tests: adjust test config (Arthur Degonde) +* tests: add unit tests for tabs (Arthur Degonde) +* tests: add unit tests for paginator (Arthur Degonde) +* tests: add unit tests for navbar (Arthur Degonde) +* tests: add unit tests for checkbox (Arthur Degonde) +* tests: add unit tests for radio component (Arthur Degonde) +* chore(deps-dev): bump @typescript-eslint/parser in /frontend (dependabot[bot]) +* tests: add unit tests for datatable (Arthur Degonde) +* tests: add unit tests for Buttons and Badge (Arthur Degonde) +* chore(deps-dev): bump @typescript-eslint/eslint-plugin in /frontend (dependabot[bot]) +* chore(deps-dev): bump postcss from 8.4.33 to 8.4.34 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump prettier from 3.2.4 to 3.2.5 in /vendors/mkui (dependabot[bot]) +* feat: fix broken symlinks (Romain Dorgueil) +* chore(deps): bump react-router-dom from 6.21.3 to 6.22.0 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/node from 20.11.14 to 20.11.16 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @types/react in /vendors/mkui (dependabot[bot]) +* Update README.rst (Romain Dorgueil) +* Update README.rst (Romain Dorgueil) +* feat: expose 4080 in dockerfile (Romain Dorgueil) +* docs: tuning index (Romain Dorgueil) +* feat: better versions in docs built by ci (Romain Dorgueil) +* feat: update docs with analytics and sitemap (Romain Dorgueil) +* Update documentation.yml (Romain Dorgueil) +* Update documentation.yml (Romain Dorgueil) +* chore(deps-dev): bump @typescript-eslint/parser in /frontend (dependabot[bot]) +* Update documentation.yml (Romain Dorgueil) +* Update documentation.yml (Romain Dorgueil) +* Update documentation.yml (Romain Dorgueil) +* Update documentation.yml (Romain Dorgueil) +* Update documentation.yml (Romain Dorgueil) +* Update documentation.yml (Romain Dorgueil) +* Create documentation.yml (Romain Dorgueil) +* chore(deps-dev): bump @types/node from 20.11.5 to 20.11.14 in /frontend (dependabot[bot]) +* chore(deps): bump @sentry/browser from 7.95.0 to 7.99.0 in /frontend (dependabot[bot]) +* chore(deps-dev): bump @typescript-eslint/eslint-plugin in /frontend (dependabot[bot]) +* chore(deps): bump recharts from 2.10.4 to 2.11.0 in /frontend (dependabot[bot]) +* feat: more readable interface for routing controllers (Romain Dorgueil) +* feat: flatten directory structure even more (Romain Dorgueil) +* feat: add telemetry ping every 24 hours (Romain Dorgueil) +* feat: add usage in telemetry, fix storage scope to singleton to avoid multiple instances (Romain Dorgueil) +* chore(deps-dev): bump @typescript-eslint/eslint-plugin in /frontend (dependabot[bot]) +* feat: telemetry (Romain Dorgueil) +* feat: simple tests for telemetry (Romain Dorgueil) +* chore(deps): bump @sentry/browser from 7.94.1 to 7.95.0 in /frontend (dependabot[bot]) +* fix: disable telemetry in subprocess tests (Romain Dorgueil) +* feat: telemetry endpoint as attr (Romain Dorgueil) +* feat: make sure telemetry does not apply to tests, unless explicitely added (Romain Dorgueil) +* chore(deps): bump date-fns from 3.3.0 to 3.3.1 in /frontend (dependabot[bot]) +* feat: flatten directory structure (Romain Dorgueil) +* fix: remove debug print statement (Romain Dorgueil) +* feat: add docker cli to dev containers while we are root (Romain Dorgueil) +* feat: remove odbc related deps that we do not use yet and that are hard to build on ci env (Romain Dorgueil) +* feat: sync tw versions with ui (Romain Dorgueil) +* feat: attempt to use devcontainers in tests (Romain Dorgueil) +* feat: add a proof of concept of testing with all available database systems (via testcontainers+docker) (Romain Dorgueil) +* chore(deps-dev): bump @typescript-eslint/parser in /frontend (dependabot[bot]) +* feat: first naive implementation of telemetry (Romain Dorgueil) +* chore(deps-dev): bump vite-tsconfig-paths in /frontend (dependabot[bot]) +* chore(deps): bump react-router-dom from 6.21.2 to 6.21.3 in /frontend (dependabot[bot]) +* chore(deps): bump date-fns from 3.2.0 to 3.3.0 in /frontend (dependabot[bot]) +* chore(deps): bump @sentry/browser from 7.93.0 to 7.94.1 in /frontend (dependabot[bot]) +* chore(deps-dev): bump vite from 5.0.11 to 5.0.12 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump twin.macro from 3.4.0 to 3.4.1 in /vendors/mkui (dependabot[bot]) +* chore(deps-dev): bump @playwright/test in /vendors/mkui (dependabot[bot]) diff --git a/docs/contribute/changelogs/index.rst b/docs/contribute/changelogs/index.rst index 3e65c711..ef1edd11 100644 --- a/docs/contribute/changelogs/index.rst +++ b/docs/contribute/changelogs/index.rst @@ -4,6 +4,7 @@ Changelogs .. toctree:: :maxdepth: 1 + 0.5.0b2 0.4.0 0.3.2 0.3.1 diff --git a/docs/contribute/release.rst b/docs/contribute/release.rst index 393233b1..b7e6bb5f 100644 --- a/docs/contribute/release.rst +++ b/docs/contribute/release.rst @@ -48,97 +48,93 @@ Prior to release .. code-block:: shell-session git add -p pyproject.toml poetry.lock harp_apps/dashboard/frontend/package.json harp_apps/dashboard/frontend/pnpm-lock.yaml - git commit -m "chore: update dependencies" + git commit -m "chore: cleanup and update dependencies" git push Releasing a new version ::::::::::::::::::::::: -Considering the main project repository is setup as "upstream" remote for git... - 1. Pull and check dependencies are there. .. code-block:: shell-session - git pull upstream `git rev-parse --abbrev-ref HEAD` - git fetch upstream --tags - pip install -U pip wheel twine git-semver - poetry lock + git pull --tags + make install-dev 2. Generate next version number -.. todo:: - - Use `poetry version` to bump ? - .. code-block:: shell-session - # Generate patch level version (x.y.z -> x.y.z+1) - NEXT_VERSION=`git semver --next-patch` - echo $NEXT_VERSION + poetry version + # ... or edit the version in pyproject.toml - # Generate minor level version (x.y.z -> x.y+1.0) - NEXT_VERSION=`git semver --next-minor` - echo $NEXT_VERSION +.. code-block:: shell-session - # Generate major level version (x.y.z -> x+1.0.0) - NEXT_VERSION=`git semver --next-major` - echo $NEXT_VERSION + export VERSION=`poetry version --short` + export OLD_VERSION=`git describe --tags --abbrev=0` -Update version numbers in `pyproject.toml` and `harp/__init__.py`... +3. Update version numbers in other project files... .. code-block:: shell-session - gsed -i -e "s/^version = .*/version = \"$NEXT_VERSION\"/" pyproject.toml - gsed -i -e "s/^__version__ = .*/__version__ = \"$NEXT_VERSION\"/" harp/__init__.py - gsed -i -e "s/^appVersion: .*/appVersion: \"$NEXT_VERSION\"/" misc/helm/charts/harp-proxy/Chart.yaml + gsed -i -e "s/^__version__ = .*/__version__ = \"$VERSION\"/" harp/__init__.py + gsed -i -e "s/^appVersion: .*/appVersion: \"$VERSION\"/" misc/helm/charts/harp-proxy/Chart.yaml -Generate a changelog... +4. Generate a changelog... .. code-block:: shell-session - git log --oneline --no-merges --pretty=format:"* %s (%an)" `git tag | tail -n 1`.. > docs/development/changelogs/$NEXT_VERSION.rst - git add docs/development/changelogs/$NEXT_VERSION.rst + git log --oneline --no-merges --pretty=format:"* %s (%an)" $OLD_VERSION.. > docs/contribute/changelogs/$VERSION.rst + git add docs/contribute/changelogs/$VERSION.rst +5. Reboot computer and un the benchmarks on new version .. code-block:: shell-session docker-compose up -d poetry run make benchmark-save -Then **edit the changelogs index** to add a title, date, **run the benchmarks** and **add perf graphs to docs**. +.. todo:: use poetry version for benchmark save ? + +- Edit the **changelog index** (`docs/contribute/changelogs/index.rst`) to add the new version (title, date). +- Add a **title** to the new changelog file. +- Add the **performance graphs** to the release note. -Add to git ... +6. Add to git .. code-block:: shell-session - git add -p pyproject.toml poetry.lock harp/__init__.py add docs/development/changelogs/ - poetry run make preqa; git add docs/reference; git add -p + poetry run make preqa + git add docs/reference + git add -p -3. Run a full test suite (todo: from a clean virtualenv) +7. Run a full test suite again (todo: from a clean virtualenv) .. todo:: - This should be done from a clean virtualenv, but it's not yet the case. - Interface snapshots should be run in a repeatable environment (docker ?). +Git add is there to check nothing was modified by QA suite. + .. code-block:: shell poetry run make qa + git add -p -**TODO: Generate benchmarks ???** - -4. Create the git release +8. Create the git release .. code-block:: shell - git commit -m "release: $(poetry version)" + git commit -m "release: $VERSION" + +9. Tag and push + +.. code-block:: shell -Then when commit succeeds ... + git tag -am "release: $VERSION" $VERSION .. code-block:: shell - git tag -am "$(poetry version)" $(poetry version --short) - git push origin `git rev-parse --abbrev-ref HEAD` --tags - git push upstream `git rev-parse --abbrev-ref HEAD` --tags + git push `git rev-parse --abbrev-ref HEAD` --tags diff --git a/harp/__init__.py b/harp/__init__.py index bcd955fa..006ffc6c 100644 --- a/harp/__init__.py +++ b/harp/__init__.py @@ -46,7 +46,7 @@ def _parse_version(version: str, /, *, default=None) -> Version: # last release __title__ = "Core" -__version__ = "0.4.0" +__version__ = "0.5.0b2" __revision__ = __version__ # we can't commit the not yet known revision # override with version.txt if available (after docker build for example) diff --git a/misc/helm/charts/harp-proxy/Chart.yaml b/misc/helm/charts/harp-proxy/Chart.yaml index f7e2e7ad..47eda328 100644 --- a/misc/helm/charts/harp-proxy/Chart.yaml +++ b/misc/helm/charts/harp-proxy/Chart.yaml @@ -3,7 +3,7 @@ name: harp-proxy description: HTTP API Runtime Proxy type: application version: "0.1.0" -appVersion: "0.4.0" +appVersion: "0.5.0b2" dependencies: - name: postgresql diff --git a/pyproject.toml b/pyproject.toml index f128a68e..5bced130 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "harp" -version = "0.4.0" +version = "0.5.0b2" description = "" authors = ["Romain Dorgueil "] readme = "README.rst"