Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
shorten report page automatic refresh time
Merged liw opened 17 days ago
4 files changed +8 -8 e5d249bd 276187c6
modified doc/userguide.md
@@ -299,7 +299,7 @@ The configuration fields are:
| `max_run_time`                   | maximum duration of a CI run                           |
| `queue_len_interval`             | how often the event queue length should be logged      |
| `report_dir`                     | directory where HTML and JSON report pages are written |
-
| `status_update_interval_seconds` | deprecated and ignore                                  |
+
| `status_update_interval_seconds` | deprecated and ignored                                 |
| `triggers`                       | see [the "Triggering CI" chapter](#triggers)           |

The items in the `adapters` list may use the following fields:
modified src/config.rs
@@ -28,10 +28,10 @@ pub struct Config {
    report_dir: Option<PathBuf>,
    db: PathBuf,

-
    // This isn't actually used. The status page is updated about once
-
    // a second, see `UPDATE_IMTERVAL` in `src/notif.rs`. However, we
-
    // don't want to break existing configuration files, so we allow
-
    // it. We just don't use it anywhere.
+
    // This isn't actually used. The status page is updated every so often
+
    // and the interval is set by `REFERESH_INTERVAL` in `src/pages.rs`.
+
    // However, we don't want to break existing configuration files, so we
+
    // allow it. We just don't use it anywhere.
    #[allow(dead_code)]
    #[serde(skip)]
    status_update_interval_seconds: Option<u64>,
modified src/notif.rs
@@ -9,7 +9,7 @@ use std::{
const EVENT_RECV_TIMEOUT: Duration = Duration::from_secs(1);

// Maximum interval between update HTML report pages.
-
const UPDATE_IMTERVAL: Duration = Duration::from_secs(1);
+
const UPDATE_INTERVAL: Duration = Duration::from_secs(1);

/// Channel endpoint for sending notifications.
#[derive(Clone)]
@@ -65,7 +65,7 @@ impl NotificationChannel {

    /// Construct a channel for notifying about new CI runs.
    pub fn new_run() -> Self {
-
        Self::new(UPDATE_IMTERVAL)
+
        Self::new(UPDATE_INTERVAL)
    }

    fn new(max_wait: Duration) -> Self {
modified src/pages.rs
@@ -41,7 +41,7 @@ const BROKER_RSS: &str = "index.rss";
const FAILURE_RSS: &str = "failed.rss";
const UNFINISHED_RSS: &str = "unfinished.rss";
const CSS: &str = include_str!("radicle-ci.css");
-
const REFERESH_INTERVAL: &str = "60";
+
const REFERESH_INTERVAL: &str = "5";
const STATUS_JSON: &str = "status.json";

/// All possible errors returned from the status page module.