Commit Graph

2045 Commits

Author SHA1 Message Date
William Braeckman
1b436241e9 [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 14:28:40 +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
William Braeckman
6bd7a30130 [IMP] runbot: fix display error in bundle toolbar
- Add dropdown-toggle to the github tool button so that it doesn't
  appear as if a button should be following it.
- Add default btn classes to category icons, the button would otherwise
  be displayed as just an icon.
- Add a gap between the two toolbars.
- Add d-empty-none in case we have no category to display to remove the
  useless gap.
2025-01-15 14:21:39 +01:00
William Braeckman
5652adb6db [FIX] runbot: fix typo in reference build message
When the reference build for some build is not done yet a message is
logged with a link to the referenced build, however due to a typo in the
message the markdown was badly formatted.
2025-01-15 13:46:53 +01:00
William Braeckman
6a58915a72 [FIX] runbot: remove unknown compute
bundle_id is not computed anymore
2025-01-15 13:43:33 +01:00
Christophe Monniez
86810df3f7 [FIX] runbot: fix frontend team dashboards again
The previous fix in c9e8e1360 was not enough, while preventing a crash
of the view, the view was empty.
2025-01-06 12:40:28 +01:00
William Braeckman
e49c583b5b [FIX] runbot: replace target new with _blank
`target="new"` had the very confusing behavior of updating the same tab
within the same browser context (tab).
The commit replaces all `target="new"` occurences with `target="_blank"`
within the runbot templates.

See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target
2025-01-03 11:23:58 +01:00
William Braeckman
a0ff53f63b [IMP] runbot: add config_data to trigger form
Adds the missing field `config_data` to trigger's form view.
2025-01-02 14:32:43 +01:00
Xavier-Do
7542f41fff [FIX] runbot: fix _compute_similar_ids 2025-01-02 10:03:26 +01:00
William Braeckman
998163ee03 [IMP] runbot: add config_data to triggers
Adds support for config_data directly on the triggers.
This will be used to share configs between triggers with different
parameters.
2024-12-19 14:39:21 +01:00
William Braeckman
fbce7ae713 [IMP] runbot: add without-demo as field
Adds the without-demo flag as a field on config steps.
2024-12-19 14:39:21 +01:00
Xavier-Do
214ab338d5 [REV] runbot: lower sleep values"
Revert "[FIX] higher sleep values"

This reverts commit c562dac84d.

This was done before upgrading the postgresql serevr hardware. we should
be able to have faster updates now.
2024-12-19 08:43:33 +01:00
Xavier-Do
09b14e1702 [FIX] runbot: add timeout to request
For a strange reason, the runbot got stuck while updating a ci status.
The reason why it occurs know just after the upgrade is unknown, but
adding a timeout may help to mitigate this issue.
2024-12-16 16:23:50 +01:00
William Braeckman
881941988b [FIX] runbot: change md_description to html
Otherwise it doesn't output raw html.
2024-12-13 10:19:04 +01:00
William Braeckman
eacd2f369d [FIX] runbot: remove user_has_groups calls
The method was removed in odoo/odoo#151597
2024-12-13 08:45:42 +01:00
William Braeckman
33bef243d2 [FIX] runbot: export diff_match_patch
Fixes the export of diff_match_patch, it previously used global export
which is not supported anymore (at least not the way it was doing it
before).
2024-12-11 15:50:42 +01:00
William Braeckman
f847ba57e1 [FIX] runbot: crash with frontend_url widget 2024-12-11 15:50:42 +01:00
William Braeckman
9e1e686cc6 [FIX] runbot: restore form views
Since https://github.com/odoo/odoo/pull/154710 form views can use
<chatter/> directly to include the chatter, not doing so completely
breaks the dom generated by the form view.
2024-12-11 14:27:38 +01:00
William Braeckman
a7d09ddb5e [FIX] runbot: fix frontend urls to backend
Urls are broken after 18.0 upgrade
2024-12-11 14:27:38 +01:00