From 91565ed8323e1f8211e4b8113e8977a754ed8d55 Mon Sep 17 00:00:00 2001 From: Neil Ashton Date: Thu, 5 Nov 2026 21:57:20 +0000 Subject: [PATCH] Announce the 11 November FluidsBench open session --- .github/workflows/profile-contract.yml | 2 +- _data/open_session.yml | 31 ++++++ _includes/open_session_notice.liquid | 35 ++++++ _includes/scripts/misc.liquid | 1 + _layouts/default.liquid | 5 + _pages/community.md | 5 + _pages/open-session.md | 60 ++++++++++ _pages/run.md | 5 + _plugins/open_session.rb | 101 +++++++++++++++++ _sass/_ux-pages.scss | 145 +++++++++++++++++++++++++ assets/js/open-session.js | 44 ++++++++ tests/test_open_session.js | 41 +++++++ 12 files changed, 474 insertions(+), 1 deletion(-) create mode 100644 _data/open_session.yml create mode 100644 _includes/open_session_notice.liquid create mode 100644 _pages/open-session.md create mode 100644 _plugins/open_session.rb create mode 100644 assets/js/open-session.js create mode 100644 tests/test_open_session.js diff --git a/.github/workflows/profile-contract.yml b/.github/workflows/profile-contract.yml index 53642d3..cd308c1 100644 --- a/.github/workflows/profile-contract.yml +++ b/.github/workflows/profile-contract.yml @@ -29,7 +29,7 @@ jobs: - run: python fluidsbench/bin/check_profile_contract.py --submission-root fluidsbench-submission --schema-root fluidsbench-submission - run: python fluidsbench/bin/prepare_submission_status.py --submission-root fluidsbench-submission --check - run: ruby fluidsbench/bin/check_launch_contract.rb - - run: node --test fluidsbench/tests/test_display_replacements.js fluidsbench/tests/test_launch.js fluidsbench/tests/test_leaderboard_compute.js fluidsbench/tests/test_compute_chart.js fluidsbench/tests/test_leaderboard_scores.js fluidsbench/tests/test_leaderboard_verification.js fluidsbench/tests/test_profile_locations.js fluidsbench/tests/test_drivaernetplusplus_profiles.js + - run: node --test fluidsbench/tests/test_display_replacements.js fluidsbench/tests/test_launch.js fluidsbench/tests/test_open_session.js fluidsbench/tests/test_leaderboard_compute.js fluidsbench/tests/test_compute_chart.js fluidsbench/tests/test_leaderboard_scores.js fluidsbench/tests/test_leaderboard_verification.js fluidsbench/tests/test_profile_locations.js fluidsbench/tests/test_drivaernetplusplus_profiles.js - run: node fluidsbench/bin/check_leaderboard_claim_ui.js - run: node --test fluidsbench/tests/test_official_profile_publication.js - run: python -m unittest discover -s fluidsbench/tests -p "test_*.py" diff --git a/_data/open_session.yml b/_data/open_session.yml new file mode 100644 index 0000000..7b6ceee --- /dev/null +++ b/_data/open_session.yml @@ -0,0 +1,31 @@ +title: "FluidsBench Open Session" +subtitle: "Benchmarking, scoring and submissions" +description: "An open community session on the scientific aims, datasets and scoring of FluidsBench, with a DrivAerML submission walkthrough and time for questions." +starts_at: "2026-11-11T16:30:00Z" +ends_at: "2026-11-11T17:30:00Z" +path: /open-session/ +calendar_path: /assets/calendar/fluidsbench-open-session-2026-11-11.ics +uid: fluidsbench-open-session-20261111@fluidsbench.org +join_url: "https://teams.microsoft.com/meet/3201271797963561?p=a26xqHhGOt95LAyOWs" +meeting_id: "320 127 179 796 356 1" +passcode: "RU7M3bw6" +time_zones: + - label: "Paris (CET)" + offset: "+01:00" + - label: "New York (EST)" + offset: "-05:00" + - label: "Los Angeles (PST)" + offset: "-08:00" +agenda: + - offset_minutes: 0 + duration_minutes: 35 + title: "Benchmark overview and submission demonstration" + description: "Scientific aims, available datasets, scoring and a DrivAerML submission walkthrough, including the leaderboard preview." + - offset_minutes: 35 + duration_minutes: 20 + title: "Community questions and discussion" + description: "Questions about evaluation and submissions, feedback on the benchmark and suggestions for additional datasets." + - offset_minutes: 55 + duration_minutes: 5 + title: "Next steps and closing remarks" + description: "How to participate in the first submission period and continue the discussion with the community." diff --git a/_includes/open_session_notice.liquid b/_includes/open_session_notice.liquid new file mode 100644 index 0000000..415473e --- /dev/null +++ b/_includes/open_session_notice.liquid @@ -0,0 +1,35 @@ +{% assign event = site.open_session %} +{% if event and event.phase != 'ended' and page.permalink != event.path %} + +{% endif %} diff --git a/_includes/scripts/misc.liquid b/_includes/scripts/misc.liquid index 07b117e..56ccd8d 100644 --- a/_includes/scripts/misc.liquid +++ b/_includes/scripts/misc.liquid @@ -30,6 +30,7 @@ +{% if site.open_session %}{% endif %} diff --git a/_layouts/default.liquid b/_layouts/default.liquid index 0804e8f..967da25 100644 --- a/_layouts/default.liquid +++ b/_layouts/default.liquid @@ -19,6 +19,11 @@ {% include header.liquid %} + {% if page.permalink == '/' %} + {% include open_session_notice.liquid %} + {% else %} + {% include open_session_notice.liquid compact=true %} + {% endif %} {% unless page.hide_header_background %}
{% endunless %} diff --git a/_pages/community.md b/_pages/community.md index 2c9f754..6091a82 100644 --- a/_pages/community.md +++ b/_pages/community.md @@ -8,6 +8,11 @@ description: Find FluidsBench community channels, project repositories and conta hide_header_background: true --- +{% if site.open_session and site.open_session.phase != 'ended' %} + +

Meet the organising committee at our open session on {{ site.open_session.short_date_label }}, {{ site.open_session.time_label }}. Bring questions about the benchmark, feedback or ideas for additional datasets.

+{% endif %} +
diff --git a/_pages/open-session.md b/_pages/open-session.md new file mode 100644 index 0000000..a12aa35 --- /dev/null +++ b/_pages/open-session.md @@ -0,0 +1,60 @@ +--- +layout: support +title: Open session +permalink: /open-session/ +page_title: FluidsBench Open Session +page_description: Benchmarking, scoring and submissions +description: Join the FluidsBench organising committee for a benchmark overview, DrivAerML submission walkthrough and community Q&A on 11 November 2026. +hide_header_background: true +exclude_from_release: true +--- + +{% assign event = site.open_session %} + +
+


{{ event.time_label }}

+

{{ event.description }}

+

Researchers, practitioners and anyone interested in AI for fluid dynamics are welcome. The FluidsBench organising committee will introduce the benchmark and discuss questions from the community.

+ +
+
+ Join on Microsoft Teams + The session is in progress +
+

Use the meeting link to join. The organiser will admit attendees from the lobby.

+

Meeting ID: {{ event.meeting_id }} · Passcode: {{ event.passcode }}

+

Add to your calendar

+ +

The calendar options add a copy of the event in your calendar's timezone. The .ics file also works with Outlook and Apple Calendar.

+
+ +
+

This session has ended

+

Continue the discussion in the FluidsBench community, or contact the team for follow-up material.

+
+ + +
+ Time in other locations +
    +
  • London (GMT) / UTC{{ event.time_label | remove: ' GMT / UTC' }}
  • + {% for zone in event.time_zones %}
  • {{ zone.label }}{{ zone.time_label }}
  • {% endfor %} +
+

All times refer to Wednesday 11 November 2026. The session lasts one hour.

+
+ +

Programme (GMT / UTC)

+
    + {% for item in event.agenda %} +
  1. {{ item.time_label }}

    {{ item.title }}

    {{ item.description }}

  2. + {% endfor %} +
+ +

Explore FluidsBench

+

You can explore the datasets, read the submission instructions and preview the leaderboard. Questions and suggestions for additional datasets are welcome.

+

Please share this page with colleagues and collaborators: {{ event.path | absolute_url }}.

+
diff --git a/_pages/run.md b/_pages/run.md index 460fdd1..ecabaa0 100644 --- a/_pages/run.md +++ b/_pages/run.md @@ -27,6 +27,11 @@ hide_header_background: true {% endif %} +{% if site.open_session and site.open_session.phase != 'ended' %} + +

Questions about submitting? Join our open session on {{ site.open_session.short_date_label }}, {{ site.open_session.time_label }} for a submission walkthrough and Q&A.

+{% endif %} +

Start here

Choose a dataset

diff --git a/_plugins/open_session.rb b/_plugins/open_session.rb new file mode 100644 index 0000000..fb4a802 --- /dev/null +++ b/_plugins/open_session.rb @@ -0,0 +1,101 @@ +require "time" +require "uri" +require "fileutils" + +module FluidsBench + module OpenSession + def self.phase(start_time, end_time, now) + return "ended" if now >= end_time + now >= start_time ? "live" : "upcoming" + end + + def self.ical_text(value) + value.to_s.gsub(/[\\,;]/) { |char| "\\#{char}" }.gsub(/\r\n|\r|\n/) { "\\n" } + end + + # RFC 5545 folds at 75 octets, without splitting a UTF-8 character. + def self.fold_line(line) + lines = [""] + line.each_char do |char| + lines << " " if lines.last.bytesize + char.bytesize > 75 + lines[-1] += char + end + lines.join("\r\n") + end + + def self.calendar(event, starts, ends, stamp, page_url) + details = "#{event.fetch('description')}\n\nJoin Microsoft Teams: #{event.fetch('join_url')}\n" \ + "Meeting ID: #{event.fetch('meeting_id')}\nPasscode: #{event.fetch('passcode')}\n\nDetails: #{page_url}" + lines = ["BEGIN:VCALENDAR", "VERSION:2.0", "PRODID:-//FluidsBench//Open Session//EN", "CALSCALE:GREGORIAN", "METHOD:PUBLISH", + "BEGIN:VEVENT", "UID:#{event.fetch('uid')}", "DTSTAMP:#{stamp.getutc.strftime('%Y%m%dT%H%M%SZ')}", + "DTSTART:#{starts.utc.strftime('%Y%m%dT%H%M%SZ')}", "DTEND:#{ends.utc.strftime('%Y%m%dT%H%M%SZ')}", + "SUMMARY:#{ical_text(event.fetch('title'))}", "DESCRIPTION:#{ical_text(details)}", "LOCATION:Microsoft Teams", + "URL:#{page_url}", "STATUS:CONFIRMED", "END:VEVENT", "END:VCALENDAR"] + lines.map { |line| fold_line(line) }.join("\r\n") + "\r\n" + end + + def self.prepare(data, now, page_url) + starts, ends = %w[starts_at ends_at].map do |key| + value = data.fetch(key) + raise ArgumentError, "#{key} must include a timezone" unless value.match?(/(?:Z|[+-]\d\d:\d\d)\z/) + Time.iso8601(value).utc + end + raise ArgumentError, "session must end after it starts" unless ends > starts + join = URI.parse(data.fetch("join_url")) + raise ArgumentError, "expected the public Teams join link" unless join.scheme == "https" && join.host == "teams.microsoft.com" && join.path.start_with?("/meet/", "/l/meetup-join/") + event = data.merge("phase" => phase(starts, ends, now), "date_label" => starts.strftime("%A %-d %B %Y"), + "short_date_label" => starts.strftime("%a %-d %b"), "time_label" => "#{starts.strftime('%H:%M')}–#{ends.strftime('%H:%M')} GMT / UTC") + event["time_zones"] = data.fetch("time_zones").map do |zone| + zone.merge("time_label" => "#{starts.getlocal(zone.fetch('offset')).strftime('%H:%M')}–#{ends.getlocal(zone.fetch('offset')).strftime('%H:%M')}") + end + event["agenda"] = data.fetch("agenda").map do |item| + first = starts + item.fetch("offset_minutes") * 60 + last = first + item.fetch("duration_minutes") * 60 + raise ArgumentError, "agenda item outside session" unless first >= starts && last <= ends && last > first + item.merge("time_label" => "#{first.strftime('%H:%M')}–#{last.strftime('%H:%M')}") + end + details = "#{data.fetch('description')}\n\nJoin Microsoft Teams: #{data.fetch('join_url')}\n\nDetails: #{page_url}" + event["google_calendar_url"] = "https://calendar.google.com/calendar/r/eventedit?" + URI.encode_www_form( + "action" => "TEMPLATE", "text" => data.fetch("title"), "dates" => "#{starts.strftime('%Y%m%dT%H%M%SZ')}/#{ends.strftime('%Y%m%dT%H%M%SZ')}", + "stz" => "Europe/London", "etz" => "Europe/London", "details" => details, "location" => "Microsoft Teams") + event["outlook_calendar_url"] = "https://outlook.office.com/calendar/0/deeplink/compose?" + URI.encode_www_form( + "path" => "/calendar/action/compose", "rru" => "addevent", "subject" => data.fetch("title"), "startdt" => starts.iso8601, + "enddt" => ends.iso8601, "allday" => "false", "body" => details, "location" => "Microsoft Teams") + [event, calendar(event, starts, ends, now, page_url)] + end + end + + if defined?(Jekyll::Generator) + class OpenSessionGenerator < Jekyll::Generator + safe true + priority :normal + + def generate(site) + return if site.config["release_snapshot"] + data = site.data["open_session"] + return unless data + page_url = site.config.fetch("url") + site.config["baseurl"].to_s + data.fetch("path") + event, ical = OpenSession.prepare(data, site.time, page_url) + site.config["open_session"] = event + site.config["open_session_ical"] = ical + path = data.fetch("calendar_path") + page = Jekyll::PageWithoutAFile.new(site, site.source, File.dirname(path).sub(%r{\A/}, ""), File.basename(path)) + page.content = ical + page.data = { "layout" => nil, "sitemap" => false, "render_with_liquid" => false } + site.pages << page + rescue ArgumentError, KeyError => error + raise Jekyll::Errors::FatalException, "FluidsBench open session: #{error.message}" + end + end + + # Jekyll's page renderer normalizes line endings. Calendar files require CRLF. + Jekyll::Hooks.register :site, :post_write do |site| + event = site.config["open_session"] + ical = site.config["open_session_ical"] + next unless event && ical + destination = File.join(site.dest, event.fetch("calendar_path").sub(%r{\A/}, "")) + FileUtils.mkdir_p(File.dirname(destination)) + File.binwrite(destination, ical) + end + end +end diff --git a/_sass/_ux-pages.scss b/_sass/_ux-pages.scss index 6a99dc3..1026112 100644 --- a/_sass/_ux-pages.scss +++ b/_sass/_ux-pages.scss @@ -1,4 +1,149 @@ /* Shared navigation and supporting pages. Leaderboard content stays independent. */ +[data-open-session][hidden], +[data-event-phase][hidden], +[data-event-local-time][hidden] { + display: none !important; +} +.open-session-notice { + background: var(--ux-tint); + border-bottom: 1px solid var(--ux-border); + color: var(--ux-ink); +} +.open-session-notice__inner { + max-width: 1240px; + margin: 0 auto; + padding: 20px 30px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px 30px; +} +.open-session-notice strong { + display: block; + font-size: 19px; + margin-bottom: 4px; +} +.open-session-notice__date { + font-size: 14px; + font-weight: 600; +} +.open-session-notice p { + font-size: 13px; + margin: 7px 0 0; + color: var(--ux-muted); +} +.open-session-notice--compact .open-session-notice__inner { + padding-top: 12px; + padding-bottom: 12px; +} +.open-session-notice--compact strong { + font-size: 15px; +} +.open-session-actions { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 12px 22px; + font-size: 14px; +} +.open-session-notice .open-session-actions { + flex-shrink: 0; +} +a.open-session-button, +.ux-support-page a.open-session-button { + display: inline-flex; + align-items: center; + gap: 8px; + min-height: 44px; + padding: 10px 16px; + border-radius: 6px; + background: #087c76; + color: #fff; + border: 1px solid transparent; + font-weight: 600; + text-decoration: none; +} +a.open-session-button:hover, +.ux-support-page a.open-session-button:hover { + background: var(--ux-accent-dark, #07616b); + color: #fff; +} +html[data-theme="dark"] a.open-session-button { + border-color: var(--ux-accent); +} +.open-session-actions a:focus-visible { + outline: 3px solid var(--ux-accent); + outline-offset: 4px; +} +.open-session-date { + font-size: 22px; + line-height: 1.6; +} +.open-session-join { + margin: 30px 0; + padding: 24px; + background: var(--ux-tint); + border: 1px solid var(--ux-border); + border-radius: 8px; +} +.open-session-join h2 { + font-size: 18px; +} +.open-session-join code { + color: var(--ux-ink); +} +.open-session-live { + color: var(--ux-accent); + font-size: 14px; + font-weight: 650; +} +.open-session-timezones, +.open-session-programme { + padding: 0; + list-style: none; +} +.open-session-timezones li { + display: flex; + justify-content: space-between; + gap: 16px; + padding: 6px 0; + max-width: 520px; +} +.open-session-programme li { + display: grid; + grid-template-columns: 125px minmax(0, 1fr); + gap: 20px; + padding: 18px 0; + border-bottom: 1px solid var(--ux-border); +} +.open-session-programme li > span { + font-weight: 600; + color: var(--ux-accent); +} +.open-session-programme h3 { + margin: 0 0 7px; + font-size: 18px; +} +.open-session-programme p { + margin: 0; +} +@media (max-width: 900px) { + .open-session-notice__inner { + flex-direction: column; + align-items: flex-start; + padding: 16px 20px; + } +} +@media (max-width: 480px) { + .open-session-programme li { + grid-template-columns: 1fr; + gap: 8px; + } + .open-session-join { + padding: 18px; + } +} + .ux-site-header { position: relative; } diff --git a/assets/js/open-session.js b/assets/js/open-session.js new file mode 100644 index 0000000..963542f --- /dev/null +++ b/assets/js/open-session.js @@ -0,0 +1,44 @@ +(function (root, factory) { + "use strict"; + const api = factory(); + if (typeof module === "object" && module.exports) module.exports = api; + if (!root.document) return; + function update() { + root.document.querySelectorAll("[data-open-session]").forEach((element) => api.refresh(element, Date.now())); + } + if (root.document.readyState === "loading") root.document.addEventListener("DOMContentLoaded", update); + else update(); + root.setInterval(update, 30000); +})(typeof window === "undefined" ? globalThis : window, function () { + "use strict"; + function phase(startsAt, endsAt, now) { + const starts = Date.parse(startsAt); + const ends = Date.parse(endsAt); + if (!Number.isFinite(starts) || !Number.isFinite(ends) || !Number.isFinite(now) || ends <= starts) return null; + return now >= ends ? "ended" : now >= starts ? "live" : "upcoming"; + } + function refresh(element, now) { + const state = phase(element.dataset.eventStart, element.dataset.eventEnd, now); + if (!state) return; + if (element.dataset.eventHideEnded === "true") element.hidden = state === "ended"; + element.querySelectorAll("[data-event-phase]").forEach((node) => { + node.hidden = !node.dataset.eventPhase.split(" ").includes(state); + }); + const local = element.querySelector("[data-event-local-time]"); + if (local && !local.textContent) { + try { + const zone = Intl.DateTimeFormat().resolvedOptions().timeZone; + const date = new Intl.DateTimeFormat(undefined, { weekday: "long", day: "numeric", month: "long", year: "numeric", timeZone: zone }); + const time = new Intl.DateTimeFormat(undefined, { hour: "2-digit", minute: "2-digit", timeZone: zone, timeZoneName: "short" }); + const start = new Date(element.dataset.eventStart); + local.textContent = `In your timezone (${zone}): ${date.format(start)}, ${time.format(start)}–${time.format( + new Date(element.dataset.eventEnd) + )}.`; + local.hidden = false; + } catch (_) { + // Keep the explicit GMT/UTC and reference timezone table as the fallback. + } + } + } + return { phase, refresh }; +}); diff --git a/tests/test_open_session.js b/tests/test_open_session.js new file mode 100644 index 0000000..322ce88 --- /dev/null +++ b/tests/test_open_session.js @@ -0,0 +1,41 @@ +const { test } = require("node:test"); +const assert = require("node:assert/strict"); +const { phase, refresh } = require("../assets/js/open-session.js"); + +const starts = "2026-11-11T16:30:00Z"; +const ends = "2026-11-11T17:30:00Z"; + +test("the public notice and join links expire at the end of the session in every timezone", () => { + assert.equal(phase(starts, ends, Date.parse("2026-11-11T11:29:59-05:00")), "upcoming"); + assert.equal(phase(starts, ends, Date.parse("2026-11-11T17:30:00+01:00")), "live"); + assert.equal(phase(starts, ends, Date.parse("2026-11-11T17:29:59Z")), "live"); + assert.equal(phase(starts, ends, Date.parse("2026-11-11T09:30:00-08:00")), "ended"); + assert.equal(phase(starts, ends, Date.parse("2026-12-05T16:30:00Z")), "ended"); +}); + +test("an already-open page hides promotions and swaps joining controls for follow-up information", () => { + const join = { dataset: { eventPhase: "upcoming live" }, hidden: false }; + const live = { dataset: { eventPhase: "live" }, hidden: true }; + const followup = { dataset: { eventPhase: "ended" }, hidden: true }; + const notice = { + dataset: { eventStart: starts, eventEnd: ends, eventHideEnded: "true" }, + hidden: false, + querySelectorAll: () => [join, live, followup], + querySelector: () => null, + }; + refresh(notice, Date.parse(starts)); + assert.equal(notice.hidden, false); + assert.equal(live.hidden, false); + assert.equal(join.hidden, false); + refresh(notice, Date.parse(ends)); + assert.equal(notice.hidden, true); + assert.equal(join.hidden, true); + assert.equal(live.hidden, true); + assert.equal(followup.hidden, false); +}); + +test("unparseable timing keeps the server-rendered date fallback", () => { + assert.equal(phase("invalid", ends, Date.now()), null); + assert.equal(phase(starts, starts, Date.now()), null); + assert.equal(phase(starts, ends, NaN), null); +});