Skip to content

Conversation

@andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Jun 11, 2025

Reasoning behind the pull request

  • We'd like to optimize GH workflows: less running time, less duplicated runs.

Proposed changes

  • Use on-prem runner for the MacOS short tests
  • Drop "build test" for "ubuntu-latest" (not very useful, covered by other workflows anyway).

Testing procedure

  • No testing necessary.

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@andreibancioiu andreibancioiu self-assigned this Jun 11, 2025
@andreibancioiu andreibancioiu marked this pull request as ready for review June 11, 2025 10:45
@andreibancioiu andreibancioiu requested a review from Copilot June 11, 2025 10:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes the GitHub workflow by switching to an on-prem runner for MacOS short tests and removing the redundant Ubuntu build test.

  • Updated the workflow name and added explicit permissions.
  • Changed the runner configuration from a matrix-based approach (ubuntu/macos) to a fixed list of self-hosted labels.
  • Removed the OS-specific conditional around running short tests.

contents: read

jobs:
build:
Copy link

Copilot AI Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify that the new runner labels [self-hosted, macOS, ARM64] correctly match the intended on-prem runner configuration. Consider adding a comment to explain the label selection for clearer future maintenance.

Suggested change
build:
build:
# The workflow runs on a self-hosted macOS ARM64 runner. Ensure that the runner configuration matches these labels.

Copilot uses AI. Check for mistakes.
Comment on lines +41 to +44
# On GitHub, we only run the short tests.
- name: Run tests
run: |
GOOS=$(go env GOOS)
if [[ "$GOOS" == darwin ]]; then
go test -short -v ./...
fi
go test -short -v ./...
Copy link

Copilot AI Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the conditional check for GOOS has been removed, confirm that running the tests unconditionally is intended for the on-prem MacOS environment. Removing obsolete conditional logic improves clarity.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, intended 🫡

@@ -1,16 +1,16 @@
name: Build and smoke test
name: Build and smoke test (on MacOS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe rename to indicate also that we run short tests?

@github-actions
Copy link

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: 63cee389a2b7baa798096d2c685d73c68ade3f88
  • Current Branch: workflow-06-11-mac
  • mx-chain-go Target Branch: rc/barnard
  • mx-chain-simulator-go Target Branch: rc/barnard
  • mx-chain-testing-suite Target Branch: rc/barnard

🚀 Environment Variables:

  • TIMESTAMP: 11062025-111326
  • PYTEST_EXIT_CODE: 1
    🎉 MultiversX CI/CD Workflow Complete!

@github-actions
Copy link

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: ad9321194467513e154766cd3e3d575b2982cda4
  • Current Branch: workflow-06-11-mac
  • mx-chain-go Target Branch: rc/barnard
  • mx-chain-simulator-go Target Branch: rc/barnard
  • mx-chain-testing-suite Target Branch: rc/barnard

🚀 Environment Variables:

  • TIMESTAMP: 11062025-112730
  • PYTEST_EXIT_CODE: 1
    🎉 MultiversX CI/CD Workflow Complete!

@github-actions
Copy link

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: 865fd77a880ccdedb4a57ff0540588956e57b5f0
  • Current Branch: workflow-06-11-mac
  • mx-chain-go Target Branch: rc/barnard
  • mx-chain-simulator-go Target Branch: rc/barnard
  • mx-chain-testing-suite Target Branch: rc/barnard

🚀 Environment Variables:

  • TIMESTAMP: 11062025-113721
  • PYTEST_EXIT_CODE: 0
    🎉 MultiversX CI/CD Workflow Complete!

@github-actions
Copy link

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: 1b5dcc357afbb357f25f7808cf88ac86f8f21f3f
  • Current Branch: workflow-06-11-mac
  • mx-chain-go Target Branch: rc/barnard
  • mx-chain-simulator-go Target Branch: rc/barnard
  • mx-chain-testing-suite Target Branch: rc/barnard

🚀 Environment Variables:

  • TIMESTAMP: 11062025-114047
  • PYTEST_EXIT_CODE: 0
    🎉 MultiversX CI/CD Workflow Complete!

@andreibancioiu andreibancioiu merged commit 8b58f54 into rc/barnard Jun 11, 2025
12 checks passed
@andreibancioiu andreibancioiu deleted the workflow-06-11-mac branch June 11, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants