From 003a907f089befdff75ef6048ba427d35c677cf6 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Mon, 14 Mar 2022 14:39:15 +0100 Subject: [PATCH] preparing for 1.8 (#1155) * updated CHANGES file * move testing to GitHub actions * prepare release action --- .github/workflows/build-test-linux.yml | 58 ++++++++++++++++++++++++++ .github/workflows/codeql-analysis.yml | 1 + .github/workflows/release-source.yml | 52 +++++++++++++++++++++++ CHANGES | 55 ++++++++++++++++++++++++ VERSION | 2 +- configure.ac | 2 +- doc/logo-dark.svg | 40 ++++++++++++++++++ doc/logo-light.svg | 40 ++++++++++++++++++ 8 files changed, 248 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-test-linux.yml create mode 100644 .github/workflows/release-source.yml create mode 100644 doc/logo-dark.svg create mode 100644 doc/logo-light.svg diff --git a/.github/workflows/build-test-linux.yml b/.github/workflows/build-test-linux.yml new file mode 100644 index 00000000..ddc85da5 --- /dev/null +++ b/.github/workflows/build-test-linux.yml @@ -0,0 +1,58 @@ +name: "Linux Build" +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install autopoint build-essential libdbi-dev libtool-bin tcl-dev lua5.1 liblua5.1-0-dev valgrind dc python3-pip python3-setuptools libpango1.0-dev ghostscript gettext + sudo pip install cpp-coveralls + + - name: Build + run: | + V=$(cat VERSION) + ./bootstrap + ./configure --prefix=/opt/rrdtool-master + make + sudo make install + /opt/rrdtool-master/bin/rrdtool + /opt/rrdtool-master/share/rrdtool/examples/4charts.pl + - name: Run Checks + run: | + make check + - name: Test bindings + run: | + (cd bindings/perl-shared && make test) + (cd bindings/python && sudo chown -R $USER . && python setup.py test) + - name: Run "rrdcached-tcp" + run: | + make check TESTS_STYLE="rrdcached-tcp" + - name: Run "rrdcached-udp" + run: | + make check TESTS_STYLE="rrdcached-unix" + - name: Run valgrind + run: | + make check TESTS_STYLE="valgrind-logfile" TESTS="modify1 modify2 modify3 modify4 modify5 tune1 tune2 graph1 rrdcreate dump-restore create-with-source-1 create-with-source-2 create-with-source-3 create-with-source-4 create-with-source-and-mapping-1 create-from-template-1 dcounter1 vformatter1 list1 pdp-calc1" + podchecker doc/*.pod + - name: Dist and Re-Build Test + run: | + V=$(cat VERSION) + make dist + tar xf rrdtool-$V.tar.gz + cd rrdtool-$V + ./configure + make + sudo make install + cd /opt/rrdtool-$V + bin/rrdtool + \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 65a58aeb..020e6878 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -64,6 +64,7 @@ jobs: # uses a compiled language - run: | + sudo apt-get update sudo apt-get install autopoint libdbi-dev libtool-bin tcl-dev lua5.1 liblua5.1-0-dev valgrind dc python3-pip python3-setuptools libpango1.0-dev ghostscript sudo pip install cpp-coveralls ./bootstrap diff --git a/.github/workflows/release-source.yml b/.github/workflows/release-source.yml new file mode 100644 index 00000000..0ccfa846 --- /dev/null +++ b/.github/workflows/release-source.yml @@ -0,0 +1,52 @@ +--- +name: Release Source + +# yamllint disable rule:line-length +# yamllint disable-line rule:truthy +on: + push: + tags: + - 'v*.*.*' + workflow_dispatch: + +jobs: + prepare: + name: Create Release + runs-on: ubuntu-latest + outputs: + version: ${{ steps.get_version.outputs.version }} + steps: + - name: Get Version + id: get_version + run: echo +'::set-output name=version::$(cat VERSION)' + + release: + name: Release Source + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install autotools build-essential gettext + - name: Build Dist + run: | + ./bootstrap + ./configure + make dist + perl -077 -ne '/^(.+?\n.+?\n.+?)\nRRDtool/s && print $1' CHANGES > releasenotes + - name: Create Release + uses: ncipollo/release-action@v1 + with: + artifacts: "rrdtool-${{ steps.get_version.outputs.version }}.tar.gz" + artifactContentType: "application/tar+gzip" + bodyFile: releasenotes + discussionCategory: "Release ${{ needs.prepare.outputs.version }}" + name: "RRDtool Version ${{ needs.prepare.outputs.version }}" + token: ${{ secrets.GITHUB_TOKEN }} + + diff --git a/CHANGES b/CHANGES index 3c0d7677..1054cb7d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,58 @@ + +RRDtool 1.8.0 - 2022-03-13 +========================== + +Bugfixes +-------- +* python bindings: properly convert double values of rrd info +* failed to expand 'Py_UNUSED', Invalid usage when expanding 'Py_UNUSED' +* document --showtime in xport help output +* fix --use-nan-for-all-missing-data +* update rrdruby.pod +* add missing rrdruby.pod and rrdpython.pod to dist +* Set first_weekday to 0 (Sunday), when HAVE__NL_TIME_WEEK_1STDAY is not defined +* fix median calculation for all NaN inputs +* fix potential leak in xport during failure +* fix many warnings raised by Cppcheck +* fix many compiler warnings from latest gcc +* ensure proper initialization in rrd_daemon +* cleanup testsuite +* better testing +* avoid invalid read in rrd_client +* add symbols from rrdc to librrd +* Fix duplicate write_changes_to_disk() calls when HAVE_LIBRADOS is true and HAVE_MMAP is false +* documentation updates +* for SMIN example in docs +* fix for pyton3 compatibility +* freemem only for valid status +* fix double meaning of time 0 as uninitialized value +* fix for zfs not supporting fallocate. this makes resize work on zfs +* add rrdrados.pod to dist +* fetch - do not call rrd_freemem on uninitialized pointers +* use separate pango fontmap per thread +* switch to python 3 +* do not leak filename when opening a broken file +* fix leaks in rrdcached +* avoid segfault when flushing cache +* escape json in legend entries +* fix leak in xport +* make rrdcgi param parsing more robust +* fix race in journal_write + + +Features +-------- +* ROUND function for rrd RPN +* vcpkg support for MSVC builds (see WIN32-BUILD-TIPS.txt) +* add first_weekday for Windows port +* add x64 platform for win32 build +* add --add-jsontime for graphv +* add --utc to graph +* add automated testing for win32 builds +* support TUNE command in rrdcached + + + RRDtool 1.7.2 - 2019-05-27 ========================== Bugfixes diff --git a/VERSION b/VERSION index f8a696c8..27f9cd32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.7.2 +1.8.0 diff --git a/configure.ac b/configure.ac index b4aa0082..4d234585 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ dnl - if any functionality was removed do c++,r=0,a=0. dnl dnl see http://sourceware.org/autobook/autobook/autobook_91.html dnl -LIBVERS=10:1:2 +LIBVERS=11:0:3 AC_SUBST(LIBVERS) AC_CANONICAL_TARGET diff --git a/doc/logo-dark.svg b/doc/logo-dark.svg new file mode 100644 index 00000000..745f2a7a --- /dev/null +++ b/doc/logo-dark.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/logo-light.svg b/doc/logo-light.svg new file mode 100644 index 00000000..8c9ccdb8 --- /dev/null +++ b/doc/logo-light.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.47.2