Edgewall Software
Modify

Opened 15 months ago

Last modified 15 months ago

#13567 new enhancement

Send summary of workflow to trac-builds mailing list on workflow_run event

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.6.1
Component: project Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

The automatic builds has been restored, however trac-builds mailing list is not working yet. I created a new workflow to send the summary to trac-builds on workflow_run event (smtp server and the user to send are required).

Proposed changes in [678ea4140/jomae.git] (jomae.git@t13567).

Configuration:

  • SMTP_URL: set smtps://<hostname>:465 or smtp://<hostname>:587
  • SMTP_USER: set <username>:<password> to authenticate for the smtp server.
  • SMTP_MAIL_FROM: set sender address
  • SMTP_MAIL_RCPT: set trac-builds@googlegroups.com

build-completed.yml workflow in the changes works once committing to trunk (default branch).

Attachments (0)

Change History (5)

comment:1 by Jun Omae, 15 months ago

Description: modified (diff)

comment:2 by Jun Omae, 15 months ago

Example:

From: <sender@example.com>
To: <rcpt@example.com>
Date: Sun, 12 Feb 2023 12:10:40 +0000
Message-ID: <github.com/jun66j5/trac/run/4156139043/1@example.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Subject: [jun66j5/trac] Run success: build #81 - trunk (190d7e84c)

View this run on GitHub: https://github.com/jun66j5/trac/actions/runs/4156139043

✓ t13567 build · 4156139043
Triggered via push about 29 minutes ago

JOBS
✓ windows-prepare (windows-2022, x64, 3.10, 1.14.2) in 1m5s (ID 11281407327)
✓ posix-prepare (ubuntu-22.04, 3.11) in 26s (ID 11281407403)
✓ posix-prepare (ubuntu-22.04, 3.10) in 23s (ID 11281407446)
✓ posix-prepare (ubuntu-22.04, 3.9) in 21s (ID 11281407495)
✓ posix-prepare (ubuntu-22.04, 3.8) in 29s (ID 11281407526)
✓ posix-prepare (ubuntu-22.04, 3.7) in 28s (ID 11281407562)
✓ posix-prepare (ubuntu-20.04, 3.6) in 22s (ID 11281407606)
✓ posix-prepare (ubuntu-20.04, 3.5) in 36s (ID 11281407640)
✓ posix-prepare (macos-12, 3.11) in 56s (ID 11281407670)
✓ posix-prepare (macos-12, 3.10) in 58s (ID 11281407699)
✓ posix-test (ubuntu-22.04, 3.11, functional) in 13m33s (ID 11281414308)
✓ posix-test (ubuntu-22.04, 3.11, sqlite, functional) in 15m39s (ID 11281414343)
✓ posix-test (ubuntu-22.04, 3.11, postgresql, functional) in 16m23s (ID 11281414369)
✓ posix-test (ubuntu-22.04, 3.11, mysql, functional) in 18m16s (ID 11281414399)
✓ posix-test (ubuntu-22.04, 3.10) in 1m34s (ID 11281414446)
✓ posix-test (ubuntu-22.04, 3.9) in 1m44s (ID 11281414472)
✓ posix-test (ubuntu-22.04, 3.8) in 1m41s (ID 11281414509)
✓ posix-test (ubuntu-22.04, 3.7) in 1m46s (ID 11281414543)
✓ posix-test (ubuntu-20.04, 3.6) in 2m15s (ID 11281414578)
✓ posix-test (ubuntu-20.04, 3.5) in 2m52s (ID 11281414607)
✓ posix-test (macos-12, 3.11, functional) in 17m40s (ID 11281414641)
✓ posix-test (macos-12, 3.11, sqlite) in 6m17s (ID 11281414683)
✓ posix-test (macos-12, 3.11, postgresql) in 5m1s (ID 11281414728)
✓ posix-test (macos-12, 3.11, mysql) in 10m53s (ID 11281414763)
✓ posix-test (macos-12, 3.10) in 5m24s (ID 11281414798)
✓ posix-test-minimum (ubuntu-22.04, 3.11, functional) in 11m47s (ID 11281414848)
✓ posix-test-minimum (macos-12, 3.11, functional) in 14m22s (ID 11281414888)
✓ windows-test-minimum (windows-2022, x64, 3.10, functional) in 15m11s (ID 11281415475)
✓ windows-test (windows-2022, x64, 3.10, 1.14.2) in 18m25s (ID 11281415523)
✓ windows-test (windows-2022, x64, 3.10, 1.14.2, sqlite) in 5m11s (ID 11281415576)

ARTIFACTS
log-macos-12--py3.11-minimum-success
log-macos-12--py3.11--success
log-ubuntu-22.04--py3.11-minimum-success
log-ubuntu-22.04--py3.11-mysql-success
log-ubuntu-22.04--py3.11-postgresql-success
log-ubuntu-22.04--py3.11-sqlite-success
log-ubuntu-22.04--py3.11--success
log-windows-2022--py3.10-minimum-success
log-windows-2022--py3.10--success
release
svnbin-windows-2022-x64--1.14.2-py3.10

For more information about a job, try: gh run view --job=<job-id>
View this run on GitHub: https://github.com/jun66j5/trac/actions/runs/4156139043

in reply to:  description ; comment:3 by Ryan J Ollos, 15 months ago

Replying to Jun Omae:

(smtp server and the user to send are required).

In the past I've used the SMTP Relay in the free tier from SendGrid. The free tier supports 100 emails / day. Should we do that, and save the account info in our private wiki? I can set it up.

in reply to:  3 comment:4 by Jun Omae, 15 months ago

Replying to Ryan J Ollos:

In the past I've used the SMTP Relay in the free tier from SendGrid. The free tier supports 100 emails / day. Should we do that, and save the account info in our private wiki? I can set it up.

Sound good. However, we should configure SPF record in DNS for the sender's domain to send mails via sendgrid. Google groups may reject mails without SPF records configuration.

refs. https://docs.sendgrid.com/ui/account-and-settings/spf-records

Last edited 15 months ago by Jun Omae (previous) (diff)

comment:5 by Ryan J Ollos, 15 months ago

Milestone: 1.5.51.6.1

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.