Commit graph

66 commits

Author SHA1 Message Date
Cockpit Project
8f9d7bb636 Makefile: Update Cockpit lib to 4693a536e3262d3254d848daed251ef3
Closes #676

(cherry picked from commit 36fc246711)
2023-07-26 10:14:26 -04:00
Cockpit Project
73ac17ce03 Makefile: Update Cockpit lib to 1336ce350d88d385870ba56405136df7
Closes #673

(cherry picked from commit ee9ab10aeb)
2023-07-19 15:44:03 -04:00
Cockpit Project
523358b03d Makefile: Update Cockpit lib to 3d2d07cb751b141b6bd6ee9a3d423081
Closes #669

(cherry picked from commit 27ad7ce5a7)
2023-07-18 15:07:57 -04:00
Allison Karlitskaya
804a15b07f Makefile: bump our test/common dependency
... and make use of the new pywrap feature from our test.

Use the same eslint and stylelint plugin configuration as the cockpit
main repo.

Co-authored-by: Katerina Koukiou <kkoukiou@redhat.com>
(cherry picked from commit 2215aa3bf8)
2023-05-31 08:36:26 -04:00
Cockpit Project
ae3d2b77cb Makefile: Update Cockpit lib to 3ca979d542a4d6cf865f2132e0bdf1b0
Closes #656

(cherry picked from commit 4c405168a8)
2023-05-31 08:36:26 -04:00
Cockpit Project
9fe6a8229a package.json: Update @patternfly/patternfly, @patternfly/react-core, @patternfly/react-icons, @patternfly/react-styles
Bump Cockpit commit to pick up the necessary adjustments for latest PF,
and adjust test for the new "-v5" namespace prefix.

Closes #654

(cherry picked from commit 092cefab3b)
2023-05-24 10:45:14 -04:00
Cockpit Project
4b0bfc7648 Makefile: Update Cockpit lib to da5abbb4245b0455cc8b610efe01e684
Closes #649

(cherry picked from commit b3e97c711c)
2023-05-17 11:08:46 -04:00
Cockpit Project
81a3650eba Makefile: Update Cockpit lib to 947f1753867e3924b9617aaace936225
Update to PF5 and the new cockpit lib API.

Closes #646

(cherry picked from commit b2bdaac5b2)
2023-05-17 11:08:46 -04:00
Martin Pitt
4dbf79bcef Makefile: Fix watch dependencies
Unbreak `make watch` from a clean tree by ensuring that node_modules/
and pkg/lib exist.

(cherry picked from commit 6ab10901a4)
2023-05-17 11:08:46 -04:00
Cockpit Project
07b5b13b12 Makefile: Update Cockpit lib to 269bf89276c679a03befc8a04244addd
(cherry picked from commit 4bc3de6d5d)
2023-04-27 14:47:24 -04:00
Justin Stephenson
235f110ec7 Bring up to date with cockpit starter kit
This encompasses a number of changes to the build process.
2023-04-27 14:47:24 -04:00
Justin Stephenson
d22ac8ef1a Makefile: Bump test API to 267 2023-02-06 15:03:49 -05:00
Jelle van der Waa
e2856e3160 Makefile: drop installing cockpit-ws/cockpit-packagekit
The default test virtual machines have this pre-installed.
2023-02-06 15:02:28 -05:00
Jelle van der Waa
95723f2817 Makefile: Adjust to changed rpmspec -q behaviour
Fedora 37's rpmspec changed behaviour: `-q` now shows the source RPM
name instead of the binary one. `--srpm` and `--rpms` don't influence
this behaviour any more. So get along with both variants.
2023-02-06 15:02:28 -05:00
Justin Stephenson
39a359bffb Remove unneeded tlog UID code
The tlog UID was being set explicitly to ensure journalctl matches
used during tests would find pre-recorded journals. This is no longer
needed as we removed the TLOG_UID filter from the journalctl match
string.
2022-06-09 10:36:25 -04:00
Justin Stephenson
1d81c8e828 Sync Makefile closer to starter-kit 2021-11-17 13:05:47 -05:00
Katerina Koukiou
3ebdcfa4fe Move to xz dist tarballs
For consistency with the already xz'ed node tarball.

Rename the oddly named `dist-gzip` target to the standard `dist`.

Cherry-picked from starter-kit commit 4ca75f143c
2021-11-17 13:05:47 -05:00
Katerina Koukiou
4be61896ea package.json: use sass instead of node-sass
node-sass is a compiled ELF module, which is problematic for
distributions that want to rebuild everything from source. The sassc CLI
program is packaged everywhere, and both use the same libsass library.

So drop node-sass and replace it with sass which is also what cockpit
and other external plugins are using.

Port alerts in PF-react-core and fix missing icons in alerts
2021-11-17 13:05:47 -05:00
Katerina Koukiou
e13c9d1bf3 Fetch pkg/lib automatically from cockpit instead of keeping a local copy
* remove mustache module as it's not used anymore.
* port alert component to react-core as the current code creates a
broken UI
2021-11-17 13:05:47 -05:00
Justin Stephenson
fcfc5f40f8 Install cockpit-packagekit in local VM
Fix testAppMenu when running make check locally
2021-01-13 10:01:00 -05:00
Justin Stephenson
819da4d495 Remove bots sudo rm from Makefile 2020-11-04 21:34:59 -05:00
Justin Stephenson
0e8f87a000 Add binary recording test 2020-10-09 12:56:58 -04:00
Justin Stephenson
ada0bacaed test: Bump testlib to 229 2020-10-06 10:15:05 -04:00
Benjamin Graham
46ad9834b3 Updated dependencies to match latest starterkit
* removed unused dependencies
* updated dependencies to match starterkit
* updated build pipeline
2020-07-24 12:53:46 -04:00
Benjamin Graham
019f61fda1 Bump cockpit test version from 199 to 219
Calls to `allow_authorize_journal_messages` are no longer needed
2020-06-03 10:00:11 -04:00
Justin Stephenson
5a6e0beb53 Don't clobber cockpit bots directory 2020-04-21 13:57:27 -04:00
Martin Pitt
45c8d762a2 Makefile: Update bots target for moved GitHub project
Cockpit bots are in their own project now.

Make the target phony so that `make bots` updates an existing checkout.

Closes #228
2019-09-25 09:15:42 -04:00
Justin Stephenson
a77896f1c2 Bump Cockpit test API version 2019-08-02 10:09:15 -04:00
Justin Stephenson
fa691ce201 Tests: Avoid failure in attempting to add existing tlog user 2019-07-24 15:31:35 -04:00
Kyrylo Gliebov
5705467b85 Add app-data-validate for metainfo.xml 2019-01-15 18:22:55 +01:00
Kyrylo Gliebov
2162092977 Update tests 2018-10-31 17:54:29 +01:00
Kyrylo Gliebov
67716138d2 Add testing 2018-10-30 15:44:11 +01:00
Martin Pitt
1da6473420 test: Really clean up test VM on image preparation
The previous fix (commit 6e05f5b483) only cleaned
test/images/$(TEST_OS), which is just a symlink to $(TEST_OS).qcow.
Clean the actual image as well.

Closes #46
2018-09-06 16:51:42 +02:00
Martin Pitt
6e05f5b483 test: Properly clean up test VM on image preparation
Remove the entire previous overlay instead of just removing the built
package. This ensures that there are no leftovers from previous
interactive debugging sessions.

This has already shown to lead to confusion in practice in
cockpit-podman.

Closes #44
2018-08-29 14:14:54 +02:00
Martin Pitt
fd59f8629b Fix make rpm for unreleased code
When the topmost commit isn't tagged, rpmbuild otherwise fails with

    error: line 2: Illegal char '-' (0x2d) in: Version: 176-1-g9101a30a

Replace the dashes from `git describe` with periods, to get a valid RPM
upstream version number.

Closes #45
2018-08-29 14:03:19 +02:00
Martin Pitt
b0fd338e4b Bump Cockpit test API to 176
No API changes.
2018-08-28 22:51:10 +02:00
Martin Pitt
959d743452 Drop Python3 build requirement
This is only being used for extracting the package name from package
json, to avoid having to duplicate it in `Makefile`.
But for only this purpose, Python 3 is rather heavyweight. It's also not
available on RHEL/CentOS 7.
2018-08-28 22:51:10 +02:00
Martin Pitt
0a7a0bfb59 Fix Makefile dependencies for directories in src/
Our release tarballs only contain files, not their containing
directories, due to `git ls-files`. tar creates these directories on the
fly on unpack, with a current timestamp instead of an archived one. This
causes directories in src/ to be newer than dist/ and thus a `make` will
try to rebuild the webpack. This breaks RPM builds.
2018-07-19 09:11:07 +02:00
Martin Pitt
e9635620c5 spec: Don't try to rebuild webpack when building released tarballs
Release tarballs already have dist/. We can't rebuild the webpack in an
RPM as that requires npm and network access for `npm install`. But we
also don't want to ship the entire `node_modules/` as that is huge and
would require lots of careful license review.

So ship a stub node_modules/ that satisfies the Makefile dependency.
Make sure that this is not newer than package.json or anything in dist/,
so that none of the Makefile's rebuild rules trigger.

Closes #36
2018-07-19 09:11:07 +02:00
Martin Pitt
70c7242d9d Fix webpack result test in dist/
When building in production mode, there is no index.js, just an
index.min.js.gz. This previously caused unnecessary rebuilds, or even
RPM build failures in environments where npm was not available. Test for
index.html instead, which is reliable.

Also factor this out into a constant to make it easier to adjust in
forked projects.
2018-07-19 09:11:07 +02:00
Martin Pitt
9af00423f4 Ship final spec file instead of template in release tarballs
This is easier to handle downstream, as the spec file can be used as-is,
instead of having to get rebuilt.

Adjust the clean rule to only remove the .spec if the .spec.in exists,
so that it gets removed in the upstream git, but not in unpacked release
tarball trees.
2018-07-19 09:11:07 +02:00
Martin Pitt
12f82a8b31 Makefile: Drop unused directory from clean rule 2018-07-19 09:11:07 +02:00
Lars Karlitski
7fa53fa3f5 Run npm install when package.json changed
Closes #34
2018-07-16 18:58:38 +02:00
Martin Pitt
3109cad8ca Fix make dist with parallel make
Building the *.po files requires the `po2json` module, so add a
dependency to it.

Put the example node module into a variable to avoid repeating it. Also
test for `po2json` instead of `react-lite`, as the latter is more likely
to get replaced by actual projects in favor of the full React.

Closes #33
2018-07-16 17:56:34 +02:00
Martin Pitt
32e278b94f
Bump Cockpit test API to 172 (#32)
No API changes.
2018-07-12 08:01:41 +02:00
Martin Pitt
42579dcdc3 Run tests with Python 3
Bump Cockpit test API to 171 for this, which made the test API
bilingual.

Closes #31
2018-07-02 17:37:20 +02:00
Martin Pitt
78c613e2fa Bump Cockpit test API to 170
No API changes.

Closes #30
2018-06-27 10:49:28 +02:00
Martin Pitt
f26741e269 Add git tag derived version to tarball and spec
Stop hardcoding the version in the spec file, and put the version into
dist tarballs.

Closes #27
2018-06-22 20:07:29 +02:00
Martin Pitt
47e02ef136 Add i18n for HTML and manifest 2018-06-19 18:09:57 +02:00
Martin Pitt
7ce7b2b40b Add i18n support
Make the "Running on.." string translatable and copy the extraction and
conversion of JSX and PO files from Cockpit.
2018-06-19 14:40:45 +02:00