Commit Graph

2062 Commits

Author SHA1 Message Date
William Braeckman
fb80ad81c3 [IMP] runbot: diffable error contents
Adds the ability to make a diff between error contents in the error form
view.
2025-03-13 10:46:31 +01:00
William Braeckman
cc39949464 [REF] runbot: extract diff display to own component
Also modernize code of the diff match patch use.
2025-03-13 10:02:43 +01:00
William Braeckman
9097aa4545 [IMP] runbot: limit error contents in error form
Limits the number of error contents displayed in the error form by
default to 5.
2025-03-12 16:44:37 +01:00
Xavier-Do
f0d6df2890 [FIX] runbot: linting 2025-03-12 15:41:40 +01:00
William Braeckman
baacd1e148 [IMP] runbot: build error frequency graphs
Adds frequency graphs for build errors as small html widgets.
All data is gathered from the last 30 days.

 - Daily frequency (how many times per day)
 - Hourly frequency (how many times per individual hour, 0-23)
 - Day Of Week frequency (how many times per day of week, 0-6)
 - Day of month frequency (how many times per day of month, 0-30)

Co-Authored-By: Xavier-Do <xdo@odoo.com>
2025-03-12 15:41:40 +01:00
William Braeckman
637cdb81e7 [FIX] runbot: prevent massive tag from taking screen space
Removes wrapping and add a horizontal scrollbar if the canonical tag is
way too long.
2025-03-12 14:55:44 +01:00
William Braeckman
396b4a7a45 [FIX] runbot: remove keepquery from navbar main
When doing a search on runbot, the main navbar item (for the current
project) keeps the search, making it less convenient to arrive back at
the homepage.
2025-03-12 14:37:14 +01:00
Xavier-Do
3fcb7687dd [IMP] runbot: avoid accidental version creation 2025-03-12 12:03:08 +01:00
William Braeckman
ea9b714e6c [IMP] runbot: prevent saving on switching tab
Auto save mechanism when switching tab is unwanted in runbot, most of
the time we will use other tabs to get the data necessary for the record
we are modifying/creating and we don't care about saving yet.
We also prevent closing the window if the record is dirty.
Auto save in pager and context switch is still kept.
2025-03-12 11:43:36 +01:00
AnhBT
d8d9f411b1 [FIX] runbot: Wrong syntax in the batch template. 2025-03-12 07:32:19 +01:00
Xavier-Do
e44ac41a19 [FIX] small fixes with canonical tags 2025-03-10 13:12:56 +01:00
Xavier-Do
8d6f484618 [IMP] runbot: add show contents action in list view 2025-03-10 11:44:27 +01:00
Xavier-Do
26bd94170a [IMP] runbot: better support of canonical tags 2025-03-10 11:33:02 +01:00
xdo
f37bb26a78 [IMP] runbot: make post message only visible for admin
Co-authored-by: William Braeckman (wbr) <wbr@odoo.com>
2025-03-07 15:17:15 +01:00
Xavier-Do
b25f709de1 [IMP] runbot: automatic error management
Add an action to post the message for exceptions automatically as well
as rebuilding the templates.
2025-03-07 15:17:15 +01:00
William Braeckman
92e5b6c4e5 [FIX] runbot: fix crash when forcing a batch
Fixes a crash when creating a new batch on a bundle who's last batch is
still preparing, instead the preparing batch will be processed directly.
2025-03-06 15:36:15 +01:00
William Braeckman
52a7b01433 [FIX] runbot: allow same version in min max tags 2025-03-06 15:30:21 +01:00
William Braeckman
669f2be60c [IMP] runbot: inherit pr target custom triggers
When teams want to work by merging many branches into a singular dev
branch before targetting master, they often require custom triggers
which we have to copy by hand.
With this change we hope to be able to set the custom trigger on the
target branch instead and inherit the custom triggers on the children
branches automatically.
2025-03-05 15:02:54 +01:00
William Braeckman
fb576db980 [FIX] runbot: remove lazy from _read_group kwargs 2025-03-05 14:27:32 +01:00
William Braeckman
564ca9af0a [REF] runbot: remove deprecated calls
Use `_read_group` instead of `read_group` as it is deprecated and will
be removed between 18 and 19.
2025-03-05 08:24:43 +01:00
Xavier-Do
9c4e43fba6 [IMP] runbot: improve min version management 2025-03-04 12:01:26 +01:00
lse-odoo
c2487f141e [ADD] runbot: smart button on build errors for build links list
Before this commit:
The only way to have details on the builds was to use the embed
one2many widget in the build error form view.
This was pretty inconvenient for complicated search as there is no
way to filter the records or group them

After this commit:
A list view now exist for the model `runbot.build.error.link`
allowing to filter and group on convenient fields.
This list view can be accessed on the runbot build error through
a smart button
2025-03-04 08:03:55 +01:00
Xavier-Do
77cd5c6f24 [IMP] runbot: add log metadata 2025-03-03 15:16:55 +01:00
William Braeckman
1c420c4bab [IMP] runbot: add tracking on tags min/max version
Just as useful as tracking the test-tags itself.
2025-03-03 14:26:17 +01:00
Xavier-Do
1ed9278d6e [IMP] runbot: improve og data
When adding an internal link in discord or other platform, a preview of
the login page is given. This is not usefull nor elegant.

This commit proposes to remove the logo and give useful information
instead
2025-02-26 11:26:11 +01:00
William Braeckman
44a1956ff5 [IMP] runbot: add host filter on load_info
Makes it possible to filter on host on the load_info view.
Monitoring was also adapted to have links to filtered load_info page.
2025-02-26 10:53:12 +01:00
Xavier-Do
34a92ac0cb [FIX] runbot: adapt upgrade test 2025-02-26 10:14:10 +01:00
Xavier-Do
bbd9d8d77a [IMP] runbot: use reference batch to define reference builds 2025-02-26 10:14:10 +01:00
Xavier-Do
53c2afaed4 [IMP] runbot: send status on dependencies 2025-02-24 11:50:50 +01:00
Christophe Monniez
6fe80265ba [IMP] runbot: add common and unique qualifiers on build error
This commit adds a `common_qualifiers` field on build error. Its purpose
is mainly to find similary qualified errors and similary qualified error
contents. This field is computed by finding qualifiers in common in all
the qualifiers of the error contents linked to the error.

A new `unique_qualifiers` is also added for the same kind of puprpose.
This field is computed by finding non contradictory qualifiers of the
linked error contents.

The fields can be used in 4 tabs added on the build error form.
2025-02-21 12:11:57 +01:00
Christophe Monniez
38f4ad3832 [FIX] runbot: fix parse log action window
- Fix the model on parse_logs action window.
- Add a server action on build to open its errors
- Fix a bad indentation
2025-02-21 10:54:19 +01:00
Xavier-Do
f18e6c7591 [IMP] runbot: allow to use base commit on new batch 2025-02-21 10:52:56 +01:00
Xavier-Do
8012b57880 [IMP] runbot: custom triger without branch changes
This allows to configure a custom trigger to use the base commits.
This can be usefull to test a config on a branch that has some changes
to ensure it works proprely.
2025-02-21 10:52:56 +01:00
Xavier-Do
48cd3a7f40 [IMP] runbot: fetch fields on build instead of params
The corresponding fields are stored on the build,
no need to read the params.
2025-02-20 08:05:41 +01:00
Xavier-Do
d0eaa85574 [IMP] runbot: faster main page
Looks like bu.database_ids[1:].sorted('name') was breaking the prefech
set leading to one query per build. Fiwing it by sorting without slicing
the ignoring the first record.

~230 ms improvement over 1.7 second
2025-02-20 08:05:41 +01:00
Xavier-Do
415bd311cf [IMP] cleaner reference builds display 2025-02-20 08:05:41 +01:00
William Braeckman
b0201bda94 [PERF] runbot: remove row_number queries
The row_number window function is quite unoptimized as it requires
reading the whole table.
Using lateral join and / or distinct makes better use of existing
indexes.
2025-02-18 16:42:10 +01:00
Xavier-Do
ff6160b9ff [IMP] runbot: add tracking on error qualiliers 2025-02-13 15:42:42 +01:00
Kishan B. Gajera (kiga)
0594c71c18 Update README.md
fix URL to change the master password.
2025-02-11 11:25:34 +01:00
Kishan B. Gajera (kiga)
6409a14ddb Update README.md
fix typos, and grammatical mistakes
2025-02-11 11:25:34 +01:00
William Braeckman
c29b55ae1b [IMP] runbot: remove auto tag if fixing match
Removes auto tags from a build if the build's branches match the build
error's fixing branch.
2025-02-11 09:28:37 +01:00
Christophe Monniez
d6a77ceb49 [IMP] runbot: qualify error contents on selected fields
The current qualifying implementation is based solely on error content.
With this commit the fields on which the regular expression will apply
can be choosen with checkboxes. It defaults to the `content` field.
2025-02-10 10:00:22 +01:00
Christophe Monniez
f7003fb964 [IMP] runbot: support environment variables in config data 2025-02-07 16:40:33 +01:00
William Braeckman
344792a191 [IMP] runbot: add created by me on exceptions
Exceptions and their followups are managed by their managers, this will
prevent having to create a custom filter to get our own exceptions.
2025-02-04 10:30:02 +01:00
William Braeckman
18bb21ec6c [REF] runbot: replace deprecated _cr access
`record._cr` is being deprecated in odoo/odoo#193636 this commit
replaces the old `._cr` with `env.cr`.
2025-01-31 09:34:46 +01:00
Xavier-Do
56912d356f [IMP] runbot: allow to specify a custom docker registry 2025-01-29 16:06:20 +01:00
William Braeckman
c9c31f843c [IMP] runbot: support github display for branch search
Supports the format (?owner)/repo#id in the `_search_dname` method.
2025-01-22 15:30:40 +01:00
William Braeckman
1fa7e4c0c7 [IMP] runbot: improve pull request widget 2025-01-22 15:30:40 +01:00
Christophe Monniez
5d99d535ec [IMP] runbot: add a widget for pull requests url's
While it's useful to have a clickable link to the fixing pull request
on the runbot error list, we cannot display the entire url as it takes
too much space. So a static text `View PR` is used.

As this static text is of limited use, this commit adds a new widget
that displays a shortened URL for the github pull request only showing
the repo and the PR number.
2025-01-22 15:30:40 +01:00
William Braeckman
1add8d56f5 [FIX] runbot: fix branch search
Allows searching branch through pr url or full branch name.
Also fixes a crash when searching invalid values.
2025-01-15 16:08:00 +01:00