Leonidas Spyropoulos pushed to branch main at Arch Linux / Packaging / Packages
/ opensearch-dashboards-alerting-plugin
Commits:
4fc13872 by Leonidas Spyropoulos at 2024-08-19T20:55:40+01:00
upgpkg: 2.16.0.0-1: new upstream release
- - - - -
4 changed files:
- .SRCINFO
- PKGBUILD
- + fix-ut.patch
- − skip-failed-test.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = opensearch-dashboards-alerting-plugin
pkgdesc = OpenSearch Dashboards Alerting Plugin
- pkgver = 2.15.0.0
+ pkgver = 2.16.0.0
pkgrel = 1
url = https://opensearch.org/docs/latest/monitoring-plugins/alerting
arch = x86_64
@@ -9,16 +9,16 @@ pkgbase = opensearch-dashboards-alerting-plugin
makedepends = npm
makedepends = python
makedepends = git
- depends = opensearch-dashboards=2.15.0
+ depends = opensearch-dashboards=2.16.0
depends = opensearch-dashboards-notifications-plugin
depends = coffeescript
options = !strip
options = emptydirs
- source =
git+https://github.com/opensearch-project/alerting-dashboards-plugin.git#tag=2.15.0.0
- source =
git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=2.15.0
- source = skip-failed-test.patch
- sha256sums =
f3b3c7a4862665207eecbfb88e9aea76f752197657cf040a9f8fc46205969d78
- sha256sums =
8528ed81c9b2282472089e611a648b22f7f240e2244bddd1124cc03612cb45d8
- sha256sums =
767800bde68861c9263d49fb71d259a08506e5048b6b922f0671663dbd3b7a70
+ source =
git+https://github.com/opensearch-project/alerting-dashboards-plugin.git#tag=2.16.0.0
+ source =
git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=2.16.0
+ source = fix-ut.patch
+ sha256sums =
713ee788a85a37468e63fe6445b04f7628d11a2b3dd1d5cd67451055c8335727
+ sha256sums =
461b77cc2acae8df36213d7b27b4719c28486ef96f8451ce1666c4a7dbe56103
+ sha256sums =
253048e791348374d794e2c687846b8b111c34fc1d06c08b4ab1f96bc0020a59
pkgname = opensearch-dashboards-alerting-plugin
=====================================
PKGBUILD
=====================================
@@ -2,8 +2,8 @@
pkgname='opensearch-dashboards-alerting-plugin'
_pluginname='alerting-dashboards-plugin'
-pkgver=2.15.0.0
-_dashboardsver=2.15.0
+pkgver=2.16.0.0
+_dashboardsver=2.16.0
pkgrel=1
pkgdesc='OpenSearch Dashboards Alerting Plugin'
url='https://opensearch.org/docs/latest/monitoring-plugins/alerting'
@@ -15,11 +15,11 @@ options=('!strip' 'emptydirs')
source=(
"git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}"
"git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}"
- skip-failed-test.patch
+ fix-ut.patch
)
-sha256sums=('f3b3c7a4862665207eecbfb88e9aea76f752197657cf040a9f8fc46205969d78'
- '8528ed81c9b2282472089e611a648b22f7f240e2244bddd1124cc03612cb45d8'
- '767800bde68861c9263d49fb71d259a08506e5048b6b922f0671663dbd3b7a70')
+sha256sums=('713ee788a85a37468e63fe6445b04f7628d11a2b3dd1d5cd67451055c8335727'
+ '461b77cc2acae8df36213d7b27b4719c28486ef96f8451ce1666c4a7dbe56103'
+ '253048e791348374d794e2c687846b8b111c34fc1d06c08b4ab1f96bc0020a59')
prepare() {
nodeVersion="$(node -v)"
@@ -29,7 +29,7 @@ prepare() {
"OpenSearch-Dashboards/package.json"
cd "${srcdir}/${_pluginname}"
- patch -Np1 -i "$srcdir"/skip-failed-test.patch
+ patch -Np1 -i "$srcdir"/fix-ut.patch #
https://github.com/opensearch-project/alerting-dashboards-plugin/pull/1041
}
build() {
=====================================
fix-ut.patch
=====================================
@@ -0,0 +1,20 @@
+diff --git a/test/jest.config.js b/test/jest.config.js
+index 01ad0e8..24c0d96 100644
+--- a/test/jest.config.js
++++ b/test/jest.config.js
+@@ -16,6 +16,7 @@ module.exports = {
+ moduleNameMapper: {
+ '\\.(css|less|scss)$': '<rootDir>/test/mocks/styleMock.js',
+ '^ui/(.*)': '<rootDir>/../../src/legacy/ui/public/$1/',
++ '^!!raw-loader!.*': 'jest-raw-loader',
+ },
+ snapshotSerializers: ['../../node_modules/enzyme-to-json/serializer'],
+ coverageReporters: ['lcov', 'text', 'cobertura'],
+@@ -50,6 +51,6 @@ module.exports = {
+ transformIgnorePatterns: [
+ // ignore all node_modules except d3-color which requires babel
transforms to handle export statement
+ // since ESM modules are not natively supported in Jest yet
(https://github.com/facebook/jest/issues/4842)
+- '[/\\\\]node_modules(?)[/\\\\].+\\.js$',
++
'[/\\\\]node_modules(?)[/\\\\].+\\.js$',
+ ],
+ };
=====================================
skip-failed-test.patch deleted
=====================================
@@ -1,12 +0,0 @@
-diff --git a/public/utils/savedObjectHelper.test.ts
b/public/utils/savedObjectHelper.test.ts
---- a/public/utils/savedObjectHelper.test.ts (revision
1740e3eb3ce5e726e43227530b54a165039bbfa3)
-+++ b/public/utils/savedObjectHelper.test.ts (date 1691755414469)
-@@ -25,7 +25,7 @@
- setUIAugSettings,
- } from './savedObjectHelper.mock';
-
--describe('savedObjectHelper', function () {
-+describe.skip('savedObjectHelper', function () {
- const uiSettingsMock = uiSettingsServiceMock.createStartContract();
- const notificationsMock = notificationServiceMock.createSetupContract();
- setUISettings(uiSettingsMock);
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/opensearch-dashboards-alerting-plugin/-/commit/4fc1387267767b8d429d577a099a65c9447ce2f4
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/opensearch-dashboards-alerting-plugin/-/commit/4fc1387267767b8d429d577a099a65c9447ce2f4
You're receiving this email because of your account on gitlab.archlinux.org.