Commit graph

542 commits

Author SHA1 Message Date
Martin Pitt
0203b962c9 Revert "spec: use nodejs-devel on Fedora"
This reverts commit b47bb4714a.

For the last couple of weeks, nodejs-devel has been uninstallable in
COPR, as it has a different major version than nodejs. This was only
introduced as a formality, not because we actually need it.
2023-03-28 10:25:54 +02:00
Allison Karlitskaya
e32368e56a build: use pip wheel to get cockpit wheel
Now that we have pip in the tasks container, this is a lot easier, and
it will allow us to drop the make-wheel script from the cockpit project.
2023-03-20 11:08:02 +01:00
Jelle van der Waa
b54f4aa607 package.json: update chrome-remote-interface for chromium 111 2023-03-14 11:55:14 +01:00
Martin Pitt
5fa7ae7f9c Run npm install with --ignore-scripts
https://github.com/cockpit-project/bots/blob/main/npm does that as well.
We don't expect/depend on scripts, and this closes at least one major
attack vector of `npm install` against developer machines.
2023-03-14 09:47:29 +01:00
Jelle van der Waa
58c60f1736 README: document development dependencies for Fedora/Ubuntu
Document what is required to get a test VM build done, for some new
contributors the gettext dependency is not obvious to resolve.
2023-03-08 17:36:10 +01:00
Cockpit Project
9f01b67b2e package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #627
2023-03-06 05:31:26 +01:00
Katerina Koukiou
d2e6145ae1 Use whole path in patternfly imports
Otherwise we rely on treeshaking mechanisms to remove unused code, thus
making our bundle size more vulnerable to bundler's ability to drop dead
code.
2023-02-23 16:36:08 +01:00
Martin Pitt
cd6b2afc15 Generalize bundler language/variable names
These changes are not specific to webpack, but apply to other bundlers
as well.
2023-02-20 10:01:02 +01:00
Martin Pitt
4990d6a103 build: Move to a webpack module
Cockpit recently changed to an ESM build system [1]. Bump
COCKPIT_REPO_COMMIT to that and follow suit.

This does not work with old node.js 10 any more which is still the
default in RHEL 8. Install the newer version 16 instead.

[1] https://github.com/cockpit-project/cockpit/pull/18366
2023-02-20 10:01:02 +01:00
Jelle van der Waa
1f4e0fac24 Makefile: bump REPO_COMMIT to include RSYNC_DEVEL support 2023-02-14 15:37:39 +01:00
Jelle van der Waa
b5267a376f README: document RSYNC_DEVEL env variable 2023-02-14 15:37:39 +01:00
shawly
681366e990 Add dark-theme-support
Fixes #610
2023-02-13 07:45:49 +01:00
Jelle van der Waa
3cb5cb96de .github: update release action workflow
Our latest action-release workflow no longer uses a deprecated
github-script version.
2023-02-08 14:31:22 +01:00
Allison Karlitskaya
03d02f398a build: add support for /pybridge scenario
Build the Python bridge from the cockpit project and install it into the
VM so we can run tests against it.
2023-02-01 17:40:48 +01:00
Cockpit Project
030d64ba48 package.json: Update @patternfly/react-core
Closes #620
2023-01-30 07:00:06 +01:00
Cockpit Project
dff02e793f package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #619
2023-01-23 06:13:35 +01:00
Cockpit Project
1161977341 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #618
2023-01-16 08:22:14 +01:00
Cockpit Project
7e3cef6686 package.json: Update @patternfly/react-core
Closes #617
2023-01-09 06:35:10 +01:00
Cockpit Project
c1e3e22790 package.json: Update @patternfly/react-core
Closes #616
2022-12-26 08:43:21 +01:00
Cockpit Project
753b877dd8 package.json: Update @patternfly/react-core
Closes #615
2022-12-19 06:05:31 +01:00
Cockpit Project
e4068d0f8d package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #614
2022-12-12 07:46:54 +01:00
Cockpit Project
7e22c859fd package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #613
2022-12-05 07:30:32 +01:00
Cockpit Project
e770d6b442 package.json: Update @patternfly/patternfly
Closes #612
2022-11-28 06:31:04 +01:00
Cockpit Project
75a89373ba package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #611
2022-11-21 06:37:53 +01:00
Cockpit Project
312cd70994 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #609
2022-11-14 08:57:56 +01:00
Cockpit Project
cba96f4f64 package.json: Update @patternfly/react-core
Closes #608
2022-11-07 07:28:06 +01:00
Martin Pitt
284cb7dad0 cirrus: Move to Fedora 37
There is no Fedora 35 image any more.
2022-10-31 11:25:49 +01:00
Cockpit Project
ddf9eb312c package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #606
2022-10-31 06:17:27 +01:00
Martin Pitt
57d7c73d6e Install into /usr/local/ by default
/usr is package manager territory, and not even writable on OSTree based
systems such as Fedora CoreOS or RHEL Edge. This has been common and
good practice in autotools for decades.

You can still override this with `make install PREFIX=...`. Use that in
the RPM spec file.
2022-09-14 09:53:10 +02:00
Cockpit Project
633e3257ae package.json: Update @patternfly/react-core
Closes #602
2022-08-16 17:48:06 +02:00
Cockpit Project
aed931ec1c package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #601
2022-08-08 06:27:05 +02:00
Cockpit Project
3d7d84684c package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #600
2022-08-01 07:38:25 +02:00
Cockpit Project
a22972abba package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #599
2022-07-25 06:18:40 +02:00
Martin Pitt
73f24087ab package.json: Move stylelint to devDependencies 2022-07-21 08:32:23 +02:00
Martin Pitt
433975df39 Bump Cockpit API to 273 2022-07-21 08:31:27 +02:00
Martin Pitt
652b06d900 test: Check that window title is translated
This is actually kind of surprising: We never call cockpit.translate()
anywhere.
2022-07-21 08:31:27 +02:00
Martin Pitt
109fa37309 test: Drop obsolete fallbacks for cockpit < 266
CentOS 8 Stream has version 270, that's the oldest version that we
support.
2022-07-21 08:31:27 +02:00
Jelle van der Waa
ee366ca531 Add CSS linting through stylelint
Include CSS linting by default for our CSS/SCSS files, originally
introduced in cockpit. The stylelint configuration is copied from
760a4628282e02fbcef3.
2022-07-19 20:32:21 +02:00
Cockpit Project
0e2591ee93 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #594
2022-07-18 06:46:01 +02:00
Jelle van der Waa
6b659f1e74
packit.yml: drop deprecated metadata key
The packit docs no longer mention the metadata key as required.
https://packit.dev/docs/configuration/#supported-jobs
2022-07-15 14:29:07 +02:00
Cockpit Project
26ec9f6994 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #592
2022-07-11 06:38:54 +02:00
Cockpit Project
eebc1cb170 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #591
2022-07-04 15:34:54 +02:00
Martin Pitt
0772f2c615 Makefile: Stop disting git-utils.sh twice
It is already contained in COCKPIT_REPO_FILES.

Also fix a typo.
2022-06-30 09:49:07 +02:00
Martin Pitt
9c7a341fe7 Makefile: Some noise cleanup
- Generalize NODE_MODULES_TEST comment to apply for both direct
   `npm install` and git checkouts.
 - Drop obsolete touch commands from dist tarfile build.
 - Consistently use NODE_MODULES_TEST constant.
 - Better sorting of .PHONY, and add missing prepare-check.

This reduces the diff to cockpit-podman.
2022-06-30 09:49:07 +02:00
Martin Pitt
ebe52bcdb7 build: use translation tools from pkg/lib
Use the html2po and manifest2po tools that we already check out from
cockpit repo pkg/lib.

These tools switched to a new argument parser library (`argparse`) in
cockpit-project/cockpit#16271, so add it to our package.json and drop
`stdio`.

Drop our old copies.

I checked the result of building `po/starter-kit.pot` before and after
the change, and aside from the timestamp, it's identical.

Cherry-picked from cockpit-podman commit bf53f801b17ba6.
2022-06-30 09:49:07 +02:00
Martin Pitt
e38a1c3906 Bump Cockpit API to include Python 3.11 compatibility fix
This will fix tests on Rawhide.
2022-06-30 09:49:07 +02:00
Martin Pitt
89fe84ead1 Makefile: Drop update-po rule
This is not called from anywhere, and does not match the contemporary
workflow where PO files are pulled from weblate.
2022-06-30 09:49:07 +02:00
Martin Pitt
06dd572784 Makefile: simplify cockpit repo checkout code
Replace the two rules for test/common and pkg/lib with a single rule
based on `git-archive`, avoiding the use of racy `FETCH_HEAD` and
side-effecting `git-checkout`.  This lets us drop the `flock` call, and
introduces some logic to avoid the fetch in case we already have it.

We'll hardcode shas from here on out: it's more secure (ie:
tamperproof), and more performant (since we don't have to check the ref
if we already have the object), in addition to being easier to work with
in terms of the required git commands.

Use pkg/lib/cockpit.js as a stamp file.

This rule will make it easier to expand to more files in the future.

One drawback is that when we want to update files from the cockpit/
repository, we'll now need to do it in lock-step: using new API from
testlib will force us to adjust to PatternFly changes, for example.

Cherry-picked from cockpit-podman commit cfc05e730d6f5d.
2022-06-30 09:49:07 +02:00
Martin Pitt
b3a9565668 build: don't move pkg/lib/ to src/lib/
Keep pkg/lib in the same location as it is in the cockpit repository,
and adjust the include path accordingly.

This makes the production of the .pot file somewhat more deterministic:
previously, it would either include or not include the strings from
pkg/lib depending on if it had been checked out or not.  Now it never
includes them.

Cherry-picked from cockpit-podman commit a70630be2139a.
2022-06-30 09:49:07 +02:00
Cockpit Project
adc3643052 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #587
2022-06-27 11:45:03 +02:00