Skip to content

Commit

Permalink
[SVLS-4918] ok, everything other than node is working
Browse files Browse the repository at this point in the history
  • Loading branch information
apiarian-datadog committed Jul 18, 2024
1 parent a0b0220 commit 74699f5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/datadog_wrapper_tracer_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class Config(NamedTuple):
),
"node_v4": Config(
name="Node.js Tracer v4",
version_variable="DD_NODE_TRACER_VERSION_4",
version_variable="local DD_NODE_TRACER_VERSION_4",
repo_name="dd-trace-js",
major_version_equal_to=4,
),
"node_v5": Config(
name="Node.js Tracer v5",
version_variable="DD_NODE_TRACER_VERSION_5",
version_variable="local DD_NODE_TRACER_VERSION_5",
repo_name="dd-trace-js",
major_version_equal_to=5,
),
Expand Down Expand Up @@ -118,7 +118,6 @@ def get_current_version(*, version_variable: str) -> str:
def get_latest_version(*, repo_name: str, major_version_equal_to: int | None) -> str:
with urlopen(f"https://api.github.com/repos/datadog/{repo_name}/releases") as r:
data = json.loads(r.read().decode("utf-8"))
print(data)

versions = sorted(
filter(
Expand Down Expand Up @@ -149,10 +148,11 @@ def extract_version(
return version

[major, _, _] = version.split(".")

if int(major) != major_version_equal_to:
return None

return None
return version


def version_sort_key(version: str) -> tuple[int, int, int]:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dotnet_tracer_update_version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Update Version for the .NET Tracer

on:
# schedule:
# - cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York
push:
schedule:
- cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York

jobs:
bump_version:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/java_tracer_update_version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Update Version for the Java Tracer

on:
# schedule:
# - cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York
push:
schedule:
- cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York

jobs:
bump_version:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/php_tracer_update_version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Update Version for the PHP Tracer

on:
# schedule:
# - cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York
push:
schedule:
- cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York

jobs:
bump_version:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/python_tracer_update_version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Update Version for the Python Tracer

on:
# schedule:
# - cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York
push:
schedule:
- cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York

jobs:
bump_version:
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/test_python.yml

This file was deleted.

0 comments on commit 74699f5

Please sign in to comment.