Commit graph

624 commits

Author SHA1 Message Date
Michael Opdenacker
a8581e5fd4 Revert "update.py: simplify and optimize thread management"
This gave suboptimal results in terms of indexing time,
plus a stuck job. Should be investigated further before
changing this.

This reverts commit e1dd2b4881.
2023-05-08 07:18:31 +02:00
Michael Opdenacker
1e3517f261 README.adoc: update infos about threads
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-05-05 16:21:30 +02:00
Michael Opdenacker
e1dd2b4881 update.py: simplify and optimize thread management
Instead of having a complicated thread count scheme and
ending up wasting time waiting for the docs task to finish
with a too low thread count at the end, let's run all
tasks with same number of threads, which by default
is the number of CPUs in the system.

This way, the indexing work always uses as many CPUs
as possible, especially when same tasks are finished
before the others.

The OS shouldn't bother if we try to run more threads
than the actual number of CPUs.

Set the ELIXIR_THREADS environment variable
if you want to use a lower number of threads,
typically on a desktop machine on which you want some
responsiveness.

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-05-05 15:50:43 +02:00
Michael Opdenacker
c156433520 utils: set ELIXIR_THREADS to number of CPUs
This way, you have a correct behaviour even without setting
ELIXIR_THREADS

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-05-05 15:17:27 +02:00
Michael Opdenacker
02ae89c917 utils: figure out Elixir install directory
No more need for ELIXIR_INSTALL variable

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-05-05 15:11:51 +02:00
Michael Opdenacker
26a47b6111 Use git "bare" cloning in README.adoc and Dockerfile(s)
This saves storage space

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-05-05 10:27:00 +02:00
Artem Chernyshev
ddfc4e8d23 replace iterating over hardcoded project names
Self explanatory. Replacing it with env variable
2023-04-07 12:21:11 +02:00
Artem Chernyshev
462b8741c5 ignoring env, venv and idea 2023-04-07 12:21:11 +02:00
Michael Opdenacker
c3b8106f85 utils/index-all-repositories: index projects sequentially
Instead of all projects in parallel.
Each indexing task runs parallel jobs anyway.
This makes errors easier to spot and the whole process easier to stop.

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-03-23 15:14:41 +01:00
Michael Opdenacker
b5b0d720fb utils/index-all-repositories: update project repositories
- Replace git:// by https://, more secure, more common
- Update URLs when necessary

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-03-23 15:05:08 +01:00
Michael Opdenacker
2fca2acfff utils/index-all-repositories: remove call to "filename"
No longer available on Ubuntu 22.04, and not necessary
anyway.

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-03-23 12:01:16 +01:00
Michael Opdenacker
8ac019c547 .travis.yml: update for Ubuntu 22.04
- Now based on Python 3.10
- Now uses a standard "universal-ctags" package

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-03-23 11:22:18 +01:00
Michael Opdenacker
8ffb3d9599 README.adoc: special version of "universal-ctags" no longer required
Because required changes are now included in the official packages
(at least in Ubuntu 22.04)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2023-03-23 11:18:55 +01:00
Andrew Soutar
65e496b950 vertical-align:top to fix line-number offset on some platforms 2023-03-23 10:19:56 +01:00
Ziyue Pan
a627571baf Style: fix redundant parentheses and typos 2023-03-23 09:54:14 +01:00
Ziyue Pan
7c4886cf3c Style: fix redundant parentheses and typos
(cherry picked from commit cd89684ce633c4997b328395cc882de3ab655475)
2023-03-23 09:54:14 +01:00
Ziyue Pan
67562314e1 fix typo in README 2023-03-21 08:14:07 +01:00
Michael Opdenacker
5d4a8d4e5d README.adoc: now use upstream version of Pygments
No more need for a custom version, as our changes are now upstream.

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2022-11-23 16:40:45 +01:00
Tamir Carmeli
76197b5973
BUGFIX: Don't double quote DT compatible strings (#229)
Both query.py and api.py call parse.quote(ident) which perform
url encoding twice on the identifier. For instance, when
ident="linux,kvm" the first encoding done in api.py changes the
ident to   GNU nano 6.2   /home/tamir/elixir/.git/COMMIT_EDITMSG *          │
BUGFIX: Don't double quote DT compatible strings

Both query.py and api.py call parse.quote(ident) which perform
url encoding twice on the identifier. For instance, when
ident="linux,kvm" the first encoding done in api.py changes the
ident to 'wow%2Cey' but the second encoding done in query.py
changes it to 'wow%252Cey' which is no longer valid.

Remove the call to parse.quote on api.py as only one quoting is
necessary, the one in query.py
2022-11-23 15:20:27 +01:00
Michael Opdenacker
cb5fc9fbdc Update default HTML banner
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2022-11-23 14:56:39 +01:00
Michael Opdenacker
50218bba02
Merge pull request #227 from tleb/frontend-fix
Front-end: make the whole width of all entries clickable
2022-11-23 14:27:53 +01:00
Michael Opdenacker
00f52df9dc dpdk: also index the "stable" release repository
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2022-07-29 12:47:42 +02:00
Michael Opdenacker
f5c6d1cd0a Fix tags for llvm
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2022-07-21 10:59:56 +02:00
Théo Lebrun
14dcd032c4 Front-end: make the whole width of all entries clickable
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
2022-07-04 18:17:44 +02:00
Michael Opdenacker
c9dc29d58e
Merge pull request #225 from anatasluo/master
README: add configure step for SELinux and systemd
2022-05-20 17:14:18 +02:00
anatasluo
514fa38ed8 README: add configure step for SELinux and systemd
To fix issues like #213, configure for SELinux
is necessary.

Signed-off-by: anatasluo <luolongjuna@gmail.com>
2022-05-19 09:42:44 +08:00
Michael Opdenacker
aa34f01f35
Merge pull request #220 from eknoes/add-bluez
Add BlueZ
2021-12-01 18:39:39 +01:00
Soenke Huster
2899eafe38
BlueZ: Use sed -E for portability 2021-10-18 11:28:00 +02:00
Soenke Huster
f77b14860e
Sort BlueZ tags 2021-10-17 13:46:16 +02:00
Soenke Huster
8b0e6722b7
Fix BlueZ tags 2021-10-17 13:05:11 +02:00
Soenke Huster
f0842f8688
Add BlueZ 2021-10-16 22:51:14 +02:00
Michael Opdenacker
0a46686643 Remove 'page' identifier from the Linux blacklist
- Don't want to skip this important structure in the Linux kernel
- This fixes https://github.com/bootlin/elixir/issues/207

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2021-01-08 15:02:44 +01:00
Michael Opdenacker
70e868d4bf
Merge pull request #202 from MaximeChretien/issue-199
docker: debian: Use pip3 version of falcon instead of debian package
2020-12-10 09:47:42 +01:00
Michael Opdenacker
dd347664fe
Merge pull request #204 from MaximeChretien/issue-196
update.py: Filter defs when indexing refs
2020-12-10 09:40:14 +01:00
Maxime Chretien (MixLeNain)
763e4fd1aa update.py: use a constant for the key modifier of defs_idxes
As Chris White said it, it's better to have only one line to change if
we have to update that value.

Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
2020-12-07 14:19:44 +01:00
Maxime Chretien (MixLeNain)
10f08e33ea test: Remove defs from refs results
Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
2020-12-07 12:20:59 +01:00
Maxime Chretien (MixLeNain)
c7f427b672 update.py: Filter defs when indexing refs
Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
2020-12-07 12:02:26 +01:00
Maxime Chretien (MixLeNain)
73df02f07a docker: debian: Use pip3 version of falcon instead of debian package
The debian package is outdated so tests fail.

Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
2020-11-09 11:59:00 +01:00
Michael Opdenacker
21fdc0c3ec Fix tags for op-tee
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-11-04 12:26:40 +01:00
Michael Opdenacker
7992eb48c3 Update definition for op-tee
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-11-04 09:15:44 +01:00
Michael Opdenacker
3b20f73281 op-tee: add tags filter
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-11-04 09:08:17 +01:00
Michael Opdenacker
fc517b659d Rename op-tee project
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-11-04 09:00:46 +01:00
Michael Opdenacker
4f39239b19
Merge pull request #201 from mwalle/master
Add optee support
2020-11-03 21:45:45 +01:00
Michael Walle
450b1d3a02 Add optee support
Fetch tags that look like a version number, i.e. "[0-9].".

Signed-off-by: Michael Walle <michael@walle.cc>
2020-11-03 14:58:25 +01:00
Michael Opdenacker
e5a941e385
Merge pull request #198 from MaximeChretien/docker-pytest
Fix tests in docker
2020-10-30 17:55:45 +01:00
Maxime Chretien (MixLeNain)
ac8b65a36d docker: use rh-git218 package instead of git in centos
This allows to have git 2.18 instead of git 1.8 and is needed for tests

Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
2020-10-30 15:58:04 +01:00
Michael Opdenacker
ef8e54b54b
Merge pull request #197 from MaximeChretien/defs-split
web.py : Split defintion list into lists for each type
2020-10-30 14:12:36 +01:00
Maxime Chretien (MixLeNain)
9ec7cf5b2e docker : Add symlink for pytest and dummy git config
Also add perl test packages to centos

Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
2020-10-30 13:13:44 +01:00
Maxime Chretien (MixLeNain)
f867ebfb8e web.py : Split defintion list into lists for each type
This splits definition printing into multiple lists, one for each type.
It allows to find wanted definitions faster when a single name is used
for multiple definitions.

Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
2020-10-30 11:03:42 +01:00
Michael Opdenacker
cc557f70e7
Merge pull request #179 from AlphaHot/patch-1
web : Add autofocus when entering a search
2020-10-30 10:59:40 +01:00