Commit Graph

2025 Commits

Author SHA1 Message Date
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
William Braeckman
03c0a5143e [FIX] runbot: replace old BS4 class with BS5
text-left -> text-start
remove data-toggle css rules
font-italic -> fst-italic
2024-12-11 14:27:38 +01:00
William Braeckman
28ce031886 [REF] runbot: replace t-esc with t-out
t-esc has been deprecated and uses redirects to t-out anyways, removing
since in dev mode it logs a warning in the terminal.

See odoo/odoo#81024
2024-12-11 14:27:38 +01:00
xdo
01e7676cb6 [FIX] runbot: revert some upgrade_code errors
Co-authored-by: William Braeckman (wbr) <wbr@odoo.com>
2024-12-11 14:27:38 +01:00
Xavier-Do
d30856107c [IMP] runbot: apply upgrade code 2024-12-11 14:27:38 +01:00
Xavier-Do
3d33448ad8 [FIX] runbot: fix query test 2024-12-11 14:27:38 +01:00
Xavier-Do
bb9242f49e [FIX] runbot: remove unaccent
see https://github.com/odoo/odoo/pull/139568
2024-12-11 14:27:38 +01:00
Xavier-Do
2b88938e14 [FIX] runbot: fix tests 2024-12-11 14:27:38 +01:00
Xavier-Do
8efc8874fe [FIX] runbot: adapt cron 2024-12-11 14:27:38 +01:00
Xavier-Do
aaf99dbe62 [FIX] runbot: adapt slug usage 2024-12-11 14:27:38 +01:00
Xavier-Do
ede1ef3c6a [FIX] runbot: addapt requirements 2024-12-11 14:27:38 +01:00
Xavier-Do
90d2906712 [IMP] runbot: remove ruff from default image
ruff is using another specific image, not useful anymore.
2024-12-11 09:57:03 +01:00
Xavier-Do
6bf1991c9d [FIX] runbot: make archive work when an error has no linked build 2024-12-10 10:45:38 +01:00
Xavier-Do
9c995d1f7c [FIX] runbot: add edition access to error content
This was forgotten during the refactoring. Needed to link error together
2024-12-10 10:45:38 +01:00
Christophe Monniez
f74391fc13 [FIX] runbot: avoid empty string in stored compute 2024-12-10 09:33:44 +01:00
Xavier Morel
2e107111f0 [ADD] runbot_merge: basic support for false positive detection
Adds a very limited ability to try and look for false positive /
non-determinstic staging errors. It tries to err on the side of
limiting false false positives, so it's likely to miss many.

Currently has no automation / reporting, just sets a flag on the
stagings which are strongly believed to have failed due to false
positives.

While at it, add link between a "root" staging and its splits. It's
necessary to clear the "false positive" flag, and surfacing it in the
UI could be useful one day.

Fixes #660
2024-12-09 16:02:28 +01:00
Xavier Morel
d6e1516f31 [IMP] runbot_merge: support arbitrary tunnel scripts
Rather than add individual tunnel methods to conftest, just allows
specifying a tunnel script and have that do whatever.

Protocol is uncomplicated: workers run the `$tunnel` with an arbitrary
port, script should create a tunnel to `localhost:$port`, print the
ingress of the tunnel to `STDOUT` with a terminating newline then
close `STDOUT`, and wait for `SIGINT` or `SIGTERM`, doing  whatever
cleanup they need when receiving either of those.

`ngrok` and `localtunnel` adapter scripts are provided out of the box,
though the ngrok one doesn't *really* work when using xdist without a
pre-spawned ngrok worker. Then again using xdist against github actual
is suicidal (because concurrency limits + rate limits) so likely
irrelevant.

Fixes #729
2024-12-09 16:02:28 +01:00
Xavier Morel
461db6a3e7 [ADD] runbot_merge: closing linked issues on merge
Requires parsing the commit messages as github plain doesn't collate
the info from there, but also the descriptions: apparently github only
adds those to the references if the PR targets the default
branch. That's not a limitation we want.

Meaning at the end of the day, the only thing we're calling graphql
for is explicit manual linking, which can't be tested without
extending the github API (and then would only be testable on DC), and
which I'm not sure anyone bothers with...

Limitations
-----------

- Links are retrieved on staging (so if one is added later it won't be
  taken in account).
- Only repository-local links are handled, not cross-repository.

Fixes #777
2024-12-09 16:02:28 +01:00
Xavier Morel
62fbda52a8 [IMP] runbot_merge: a PR can't be reopened if its batch is merged
In that case, ignore the reopen, close the PR, and tell the idiot to
fuck off.

Also the case where a PR is reopened while its batch is staged was
already handled, but probably not tested: it was implicit in
forcefully updating the HEAD of the PR, which triggers an unstage
since c8a06601a7.

Now that scenario is tested, which should lower the odds of breaking
it in the future.

Fixes #965
2024-12-09 16:02:28 +01:00
Xavier Morel
31f3edeea6 [IMP] runbot_merge: minor simplification of test_by_branch
Dedup' the application of statuses. Although it is somewhat slower do
keep applying them one by one to ensure all are required.
2024-12-09 16:02:28 +01:00
Xavier-Do
ee55c8c630 [FIX] runbot: add missing depends 2024-12-05 13:17:11 +01:00