Skip to content

add unified workflow#190

Open
kgraeper wants to merge 4 commits intoeclipse-score:mainfrom
etas-contrib:feature/test-known-good-update-public
Open

add unified workflow#190
kgraeper wants to merge 4 commits intoeclipse-score:mainfrom
etas-contrib:feature/test-known-good-update-public

Conversation

@kgraeper
Copy link
Contributor

No description provided.

@github-actions
Copy link

The created documentation from the pull request is available at: docu-html

Copy link
Contributor

@PiotrKorkus PiotrKorkus left a comment

Choose a reason for hiding this comment

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

how are secrets handled? Main entrance point to the workflows is now triggered on pull_request I think it wont give access to the secrets in downstream jobs.


try:
old_modules = load_known_good(Path("known_good.json")).modules if Path("known_good.json").exists() else {}
old_modules = _flatten_modules(load_known_good(Path("known_good.json")).modules) if Path("known_good.json").exists() else {}
Copy link
Contributor

Choose a reason for hiding this comment

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

is this path corerct? there is no known_good.json in scripts/
Also the amout of operations in one line is quite big, maybe its worth splitting now?

Copy link
Contributor

Choose a reason for hiding this comment

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

dont change formatting of bazel, it needs to match with expected formatting of starlark

Comment on lines +175 to +185
old_hash = mod.hash
if latest != old_hash:
old_version = mod.version
mod.hash = latest
mod.version = None # Clear version when hash changes
if old_version:
print(f"{mod.name}: {old_version} -> {latest[:8]} (branch {branch})")
else:
print(f"{mod.name}: {old_hash[:8]} -> {latest[:8]} (branch {branch})")
else:
print(f"{mod.name}: {old_hash[:8]} -> {latest[:8]} (branch {branch})")
else:
print(f"{mod.name}: {old_hash[:8]} (no update)")
except Exception as e: # noqa: BLE001
failures += 1
print(f"ERROR {mod.name}: {e}", file=sys.stderr)
if args.fail_fast:
break
print(f"{mod.name}: {old_hash[:8]} (no update)")
Copy link
Contributor

Choose a reason for hiding this comment

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

new method candidate? compare_versions or smth?

Copy link
Contributor

Choose a reason for hiding this comment

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

Im not a fan of using very different names for the same job e.g. utest and integratio testing same time?

@kgraeper kgraeper force-pushed the feature/test-known-good-update-public branch from 8bb8280 to 26c3c4e Compare March 18, 2026 22:06
Copy link
Contributor

@pawelrutkaq pawelrutkaq left a comment

Choose a reason for hiding this comment

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

Looks better than bforem still please get rid of most of the "integration test" name and describe what they really do. The only step integration test is once we run FIT. Also, not all jobs are run yet.

echo "::group::update bazel_common/score_modules_*.MODULE.bazel"
scripts/known_good/update_module_from_known_good.py --known known_good.updated.json --output-dir-modules bazel_common
cat bazel_common/score_modules_*.MODULE.bazel
echo "::endgroup::"
Copy link
Contributor

Choose a reason for hiding this comment

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

shall this be in repo action so its not copy pasted everywhere ?

run: echo "separate doc workflow"
build_and_test_autosd:
name: build_and_test_autosd
needs: docs
Copy link
Contributor

Choose a reason for hiding this comment

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

al builds ned only preparation, nothing else

# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
# Nightly / manual integration tests: updates all modules to latest HEAD on their branch.
name: Integration Tests (Nightly)
Copy link
Contributor

Choose a reason for hiding this comment

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

Auto update dependencies - integration test mean nothing.

on:
workflow_dispatch:
schedule:
- cron: '30 2 * * *' # Every night at 02:30 UTC on main-etas branch
Copy link
Contributor

Choose a reason for hiding this comment

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

lets run every 2-3h.

# *******************************************************************************
# Workflow configuration for S-CORE CI - Bazel Build & Test baselibs
# This workflow runs Bazel build and test when triggered by specific pull request events.
name: Integration Tests (PR)
Copy link
Contributor

Choose a reason for hiding this comment

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

Different name really.

name: Integration Tests (PR)
on:
workflow_dispatch:
pull_request_target:
Copy link
Contributor

Choose a reason for hiding this comment

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

here we have problem. once we do it it means all release branches will never work. We need to seperate targeta thta need pr target into separate workflows and call them differently. This is hell complicated, maybe we shall do it after this PR.

@@ -300,14 +300,24 @@ def main():
log_dir.mkdir(parents=True, exist_ok=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

we can remove this one. Qe have all we need currenlty in quality runner and in workflows.

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.

3 participants