[ci] Pin SOURCE_DATE_EPOCH in the idf.py equivalence check (#19970)

This commit is contained in:
J. Nick Koston
2026-10-01 12:37:42 +00:00
committed by GitHub
parent 3dc608c772
commit 7e32770c5a
2 changed files with 24 additions and 2 deletions
+4
View File
@@ -15,6 +15,7 @@ from __future__ import annotations
import argparse
import hashlib
import json
import os
from pathlib import Path
import re
import subprocess
@@ -106,6 +107,9 @@ def check(build_path: Path) -> list[str]:
(build_path / "build" / "project_description.json").read_text(encoding="utf-8")
)
name, version = _setup_core(build_path, description)
# ESP-IDF's openthread stamps the configure time into its compile flags;
# pin it before the env is cached so both configures get the same value.
os.environ["SOURCE_DATE_EPOCH"] = "0"
env = toolchain._get_idf_env(version)
python = toolchain._get_idf_tool("python")
idf_py = toolchain._get_idf_path(version) / "tools" / "idf.py"